Skip to content

Commit

Permalink
add github-release job in publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
wenh06 committed Nov 25, 2023
1 parent 8079c29 commit 4da2515
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/check-formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ jobs:
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install importlib-metadata==4.8.3 # Testing packages
python -m pip install -r requirements.txt
python setup.py install_egg_info # Workaround https://github.com/pypa/pip/issues/4537
python -m pip install -e .[dev]
- name: List installed Python packages
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,24 @@ jobs:
name: ${{ env.ARTIFACT_NAME }}
path: dist

github-release:
# github release and changelog
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build Changelog
id: changelog
uses: mikepenz/release-changelog-builder-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
body: ${{ steps.changelog.outputs.changelog }}

pypi-publish:
# publishing is separate from building
needs: build
Expand Down

0 comments on commit 4da2515

Please sign in to comment.