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
|
- name: Generate release notes
|
||||||
id: generate_release_notes
|
id: generate_release_notes
|
||||||
if: github.event_name != 'push'
|
if: github.event_name != 'push' || startsWith(github.ref, 'refs/tags/')
|
||||||
run: |
|
run: |
|
||||||
echo "Release notes for version ${{ env.VERSION }}" > release_notes.md
|
echo "Release notes for version ${{ env.VERSION }}" > release_notes.md
|
||||||
echo "" >> release_notes.md
|
echo "" >> release_notes.md
|
||||||
|
|
@ -103,7 +103,7 @@ jobs:
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: 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
|
uses: actions/create-release@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
@ -116,7 +116,7 @@ jobs:
|
||||||
|
|
||||||
- name: Upload Release Asset
|
- name: Upload Release Asset
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
if: github.event_name != 'push'
|
if: github.event_name != 'push' || startsWith(github.ref, 'refs/tags/')
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
|
|
@ -127,7 +127,7 @@ jobs:
|
||||||
|
|
||||||
- name: Upload Python Tar Asset
|
- name: Upload Python Tar Asset
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
if: github.event_name != 'push'
|
if: github.event_name != 'push' || startsWith(github.ref, 'refs/tags/')
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
|
|
@ -138,7 +138,7 @@ jobs:
|
||||||
|
|
||||||
- name: Upload Python Whl Asset
|
- name: Upload Python Whl Asset
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
if: github.event_name != 'push'
|
if: github.event_name != 'push' || startsWith(github.ref, 'refs/tags/')
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
|
|
@ -147,6 +147,17 @@ jobs:
|
||||||
asset_name: ${{ env.WHL_NAME }}
|
asset_name: ${{ env.WHL_NAME }}
|
||||||
asset_content_type: application/zip
|
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
|
- name: Upload the distribution packages
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue