Skip to content

Commit

Permalink
fix: updating release instead of uploading artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
adamamer20 committed Aug 28, 2024
1 parent 26e3e21 commit f72f458
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Update Version, Test, Publish to PyPI, and Upload Release Artifacts
name: Update Version, Test, Publish to PyPI, and Update GitHub Release

on:
release:
types: [created, edited]

jobs:
build-test-publish-upload:
build-test-publish-release:
runs-on: ubuntu-latest
environment: release
permissions:
Expand Down Expand Up @@ -39,19 +39,21 @@ jobs:
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
skip-existing: true
skip-existing: true
- name: Verify PyPI Release
run: |
# Verify PyPI release
PACKAGE_NAME="mesa_frames"
CURRENT_VERSION=$(hatch version)
pip install $PACKAGE_NAME==$CURRENT_VERSION
python -c "import mesa_frames; print(mesa_frames.__version__)"
- name: Upload package as artifact to GitHub
uses: actions/upload-artifact@v4
- name: Update GitHub Release
uses: softprops/action-gh-release@v1
with:
name: package
path: dist/
files: |
dist/*
tag_name: ${{ github.ref }}
name: ${{ github.ref }}
- name: Create or recreate version branch
run: |
CURRENT_VERSION=$(hatch version)
Expand Down

0 comments on commit f72f458

Please sign in to comment.