Release on tag and upload full dist (#98)
This commit is contained in:
parent
1ba6cc5a40
commit
3bd56b295d
1 changed files with 16 additions and 5 deletions
21
.github/workflows/release-containers.yml
vendored
21
.github/workflows/release-containers.yml
vendored
|
|
@ -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
|
||||
|
|
@ -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 }}
|
||||
|
|
@ -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:
|
||||
|
|
@ -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:
|
||||
|
|
@ -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:
|
||||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue