Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
fortysix2ahead committed Nov 11, 2023
2 parents 5d86d7b + 94e8485 commit e23eb87
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 4 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/changelog-updater.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# .github/workflows/update-changelog.yaml
name: "Update Changelog"

on:
release:
types: [released]

jobs:
update:
runs-on: ubuntu-latest

permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# updated CHANGELOG back to the repository.
# https://github.blog/changelog/2023-02-02-github-actions-updating-the-default-github_token-permissions-to-read-only/
contents: write

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.release.target_commitish }}

- name: Update Changelog
uses: stefanzweifel/changelog-updater-action@v1
with:
latest-version: ${{ github.event.release.tag_name }}
release-notes: ${{ github.event.release.body }}

- name: Commit updated CHANGELOG
uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: ${{ github.event.release.target_commitish }}
commit_message: Update CHANGELOG
file_pattern: CHANGELOG.md
41 changes: 41 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Release Drafter

on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- master
# pull_request event is required only for autolabeler
pull_request:
# Only following types are handled by the action, but one can default to all as well
types: [opened, reopened, synchronize]
# pull_request_target event is required for autolabeler to support PRs from forks
# pull_request_target:
# types: [opened, reopened, synchronize]

permissions:
contents: read

jobs:
update_release_draft:
permissions:
# write permission is required to create a github release
contents: write
# write permission is required for autolabeler
# otherwise, read permission is required at least
pull-requests: write
runs-on: ubuntu-latest
steps:
# (Optional) GitHub Enterprise requires GHE_HOST variable set
#- name: Set GHE_HOST
# run: |
# echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV

# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v5
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
# with:
# config-name: my-config.yml
# disable-autolabeler: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14 changes: 11 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@

# Changelog

## Version 0.1.1
- Fixed: install typing_extensions as dependency, making synophotos run with Python 3.11
## [Unreleased]

## [0.1.1] - 2023-11-10

### Fixed

- install typing_extensions as dependency, making synophotos run with Python 3.11

## [0.1.0] - 2023-11-10

### Added

## Version 0.1.0
- Initial release version
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ dependencies = [
[project.optional-dependencies]
dev = [
"bumpver~=2023.1129",
"flit~=3.9.0",
"mkdocs~=1.5.3",
"mkdocs-click~=0.8.1",
"mkdocs-material~=9.4.7"
Expand All @@ -53,7 +54,7 @@ build-backend = "flit_core.buildapi"
current_version = "0.1.1"
version_pattern = "MAJOR.MINOR.PATCH[-INC0]"
commit_message = "Increased version from {old_version} to {new_version}"
tag_message = "rel{new_version}"
tag_message = "rel-{new_version}"
tag_scope = "default"
pre_commit_hook = ""
post_commit_hook = ""
Expand Down

0 comments on commit e23eb87

Please sign in to comment.