diff --git a/.github/workflows/build_dist.yml b/.github/workflows/build_dist.yml index 729a35d..1fd03da 100644 --- a/.github/workflows/build_dist.yml +++ b/.github/workflows/build_dist.yml @@ -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 @@ -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: | @@ -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 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e3cd2bd..241a248 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -4,8 +4,6 @@ name: Tests on: - push: - branches: [ "main", "dev" ] pull_request: branches: [ "*" ]