Skip to content

Commit

Permalink
update release pipeline (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
CuriousDolphin authored Nov 28, 2024
1 parent bb40740 commit 4bb21a1
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,27 @@ jobs:
contents: write
steps:
- uses: actions/checkout@v2
- name: Bump version and push tag
id: tag_version
- name: get next version without tagging
id: get_next_version
uses: mathieudutour/github-tag-action@v6.2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
dry_run: true
- name: Update pyproject.toml with new version tag
run: |
sed -i 's/version = ".*"/version = "${{ steps.tag_version.outputs.new_tag }}"/' pyproject.toml
- name: Commit changes
sed -i 's/version = ".*"/version = "${{ steps.get_next_version.outputs.new_version }}"/' pyproject.toml
- name: Update project version
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "[bot]: update version to ${{ steps.tag_version.outputs.new_tag }}"
commit_message: "[bot]: update version to ${{ steps.get_next_version.outputs.new_version }}"
branch: main
file_pattern: pyproject.toml
add_options: --update
- name: get next version without tagging
id: tag_version
uses: mathieudutour/github-tag-action@v6.2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Create a GitHub release
uses: ncipollo/release-action@v1
with:
Expand Down

0 comments on commit 4bb21a1

Please sign in to comment.