Skip to content

Commit

Permalink
Release on tag and upload full dist (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdreyer authored Oct 9, 2024
1 parent 1ba6cc5 commit 3bd56b2
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/release-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
- name: Generate release notes
id: generate_release_notes
if: github.event_name != 'push'
if: github.event_name != 'push' || startsWith(github.ref, 'refs/tags/')
run: |
echo "Release notes for version ${{ env.VERSION }}" > release_notes.md
echo "" >> release_notes.md
Expand All @@ -103,7 +103,7 @@ jobs:
- name: Create Release
id: create_release
if: github.event_name != 'push'
if: github.event_name != 'push' || startsWith(github.ref, 'refs/tags/')
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -116,7 +116,7 @@ jobs:

- name: Upload Release Asset
uses: actions/upload-release-asset@v1
if: github.event_name != 'push'
if: github.event_name != 'push' || startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -127,7 +127,7 @@ jobs:

- name: Upload Python Tar Asset
uses: actions/upload-release-asset@v1
if: github.event_name != 'push'
if: github.event_name != 'push' || startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -138,7 +138,7 @@ jobs:

- name: Upload Python Whl Asset
uses: actions/upload-release-asset@v1
if: github.event_name != 'push'
if: github.event_name != 'push' || startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -147,6 +147,17 @@ jobs:
asset_name: ${{ env.WHL_NAME }}
asset_content_type: application/zip

- name: Upload Full Dist
uses: actions/upload-release-asset@v1
if: github.event_name != 'push' || startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/${{ env.WHL_NAME }}
asset_name: python-package-distributions.tar.gz
asset_content_type: application/zip

- name: Upload the distribution packages
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 3bd56b2

Please sign in to comment.