Skip to content

Commit

Permalink
feat: git add the changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
slevang committed Apr 14, 2024
1 parent 467b8d0 commit 68d2d50
Showing 1 changed file with 22 additions and 14 deletions.
36 changes: 22 additions & 14 deletions .github/workflows/release_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
with:
fetch-depth: 0

- name: Generate a changelog
- name: Git-cliff Changelog
uses: orhun/git-cliff-action@v2
id: git-cliff
with:
Expand All @@ -30,6 +30,14 @@ jobs:
env:
OUTPUT: CHANGELOG.md

- name: Add Changelog
run: |
git add CHANGELOG.md
- name: Install build
run: |
pip install build
# This action uses Python Semantic Release v8
- name: Python Semantic Release
id: release
Expand All @@ -38,16 +46,16 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
changelog: false

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
# NOTE: DO NOT wrap the conditional in ${{ }} as it will always evaluate to true.
# See https://github.com/actions/runner/issues/1173
if: steps.release.outputs.released == 'true'
with:
password: ${{ secrets.PYPI_TOKEN }}

- name: Publish package distributions to GitHub Releases
uses: python-semantic-release/upload-to-gh-release@main
if: steps.release.outputs.released == 'true'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# - name: Publish package distributions to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
# # NOTE: DO NOT wrap the conditional in ${{ }} as it will always evaluate to true.
# # See https://github.com/actions/runner/issues/1173
# if: steps.release.outputs.released == 'true'
# with:
# password: ${{ secrets.PYPI_TOKEN }}

# - name: Publish package distributions to GitHub Releases
# uses: python-semantic-release/upload-to-gh-release@main
# if: steps.release.outputs.released == 'true'
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 68d2d50

Please sign in to comment.