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
25 changes: 19 additions & 6 deletions .github/workflows/build_dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

- name: Gather new package version
id: version
uses: anothrNick/github-tag-action@2.12.0
uses: anothrNick/github-tag-action@1.61.0
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
WITH_V: false
Expand All @@ -39,12 +39,19 @@ jobs:

- name: Bump package version in pyproject.toml
run: |
. ./venv/bin/activate
poetry version ${{steps.version.outputs.new_tag}}
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add pyproject.toml
git diff-index --quiet HEAD || git commit -m "Updating version of pyproject.toml [skip actions]"
git push
git commit -m "Updating version of pyproject.toml"

- name: Push the new pyproject.toml
uses: ad-m/github-push-action@master
with:
github_token: ${{secrets.GITHUB_TOKEN}}
branch: main
force: true

- name: Build dist
run: |
Expand All @@ -66,11 +73,17 @@ jobs:
force: true
directory: dist

- name: Create Tag and Release
id: create_tag_and_release
uses: anothrNick/github-tag-action@2.12.0
- name: Create Tag
id: tag
uses: anothrNick/github-tag-action@1.61.0
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
WITH_V: false
DEFAULT_BUMP: patch
DRY_RUN: false

- name: Create Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.tag.outputs.new_tag }}
generate_release_notes: true
2 changes: 0 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
name: Tests

on:
push:
branches: [ "main", "dev" ]
pull_request:
branches: [ "*" ]

Expand Down