upload wheel as release artifact

This commit is contained in:
dries.k
2022-08-04 18:21:07 +02:00
parent 64b89c16e9
commit 873f800515

View File

@@ -100,27 +100,6 @@ jobs:
name: gotify-tray.dmg name: gotify-tray.dmg
path: gotify-tray.dmg path: gotify-tray.dmg
release:
runs-on: ubuntu-latest
needs: [build-win64, build-ubuntu, build-debian, build-macos]
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@master
- name: Release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
gotify-tray-installer-win.exe
gotify-tray_amd64_ubuntu_focal.deb
gotify-tray_amd64_ubuntu_hirsute.deb
gotify-tray_amd64_ubuntu_impish.deb
gotify-tray_amd64_ubuntu_jammy.deb
gotify-tray_amd64_debian_bullseye.deb
gotify-tray_amd64_debian_bookworm.deb
gotify-tray.dmg
pypi: pypi:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@@ -141,3 +120,29 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1 uses: pypa/gh-action-pypi-publish@release/v1
with: with:
password: ${{ secrets.PYPI_API_TOKEN }} password: ${{ secrets.PYPI_API_TOKEN }}
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
path: dist/gotify_tray-*.whl
release:
runs-on: ubuntu-latest
needs: [build-win64, build-ubuntu, build-debian, build-macos, pypi]
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@master
- name: Release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
gotify-tray-installer-win.exe
gotify-tray_amd64_ubuntu_focal.deb
gotify-tray_amd64_ubuntu_hirsute.deb
gotify-tray_amd64_ubuntu_impish.deb
gotify-tray_amd64_ubuntu_jammy.deb
gotify-tray_amd64_debian_bullseye.deb
gotify-tray_amd64_debian_bookworm.deb
gotify-tray.dmg
gotify_tray-*.whl