Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ template: |
```
See it on pypi: [https://pypi.org/project/mkdocs-simple-plugin](https://pypi.org/project/mkdocs-simple-plugin/$RESOLVED_VERSION/)

## Docker
## Docker

Pull it with docker

Expand Down
20 changes: 18 additions & 2 deletions .github/workflows/release_draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,17 @@ on:
branches: [main]
workflow_dispatch:

permissions:
contents: read

jobs:
update_release_draft:
permissions:
# write permission is required to create a github release
contents: write
runs-on: ubuntu-latest
outputs:
tag_name: ${{ steps.release-draft.outputs.tag_name }}
steps:
# Drafts your next Release notes as Pull Requests are merged into "main"
- uses: release-drafter/release-drafter@v5.24.0
Expand All @@ -17,12 +25,20 @@ jobs:
config-name: release-drafter.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

update_version:
permissions:
# write permission is required to push updated version
contents: write
runs-on: ubuntu-latest
needs: update_release_draft
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.RELEASEBOT_TOKEN }}
- name: Update setup.py
- name: Bump setup.py
env:
VERSION: ${{ steps.release-draft.outputs.tag_name }}
VERSION: ${{ needs.update_release_draft.outputs.tag_name }}
run: |
echo "Bumping version to ${VERSION}"
echo "${VERSION}" > VERSION
Expand Down