update workflow actions

This commit is contained in:
dries.k
2022-11-02 20:52:56 +01:00
parent ac15d079ef
commit 44da71d5e3
2 changed files with 28 additions and 28 deletions

View File

@@ -12,9 +12,9 @@ jobs:
build-win64: build-win64:
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Set up Python 3.9 - name: Set up Python 3.9
uses: actions/setup-python@v2 uses: actions/setup-python@v4
with: with:
python-version: '3.9.5' python-version: '3.9.5'
- name: Upgrade pip and enable wheel support - name: Upgrade pip and enable wheel support
@@ -30,7 +30,7 @@ jobs:
mv inno-output\gotify-tray-installer.exe gotify-tray-installer-win.exe mv inno-output\gotify-tray-installer.exe gotify-tray-installer-win.exe
shell: cmd shell: cmd
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: gotify-tray-installer-win.exe name: gotify-tray-installer-win.exe
path: gotify-tray-installer-win.exe path: gotify-tray-installer-win.exe
@@ -42,9 +42,9 @@ jobs:
tag: [jammy] tag: [jammy]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v2 uses: actions/setup-python@v4
with: with:
python-version: '3.9.5' python-version: '3.9.5'
- name: Upgrade pip and enable wheel support - name: Upgrade pip and enable wheel support
@@ -54,7 +54,7 @@ jobs:
make build make build
cp dist/gotify-tray_amd64.deb gotify-tray_amd64_ubuntu_${{ matrix.tag }}.deb cp dist/gotify-tray_amd64.deb gotify-tray_amd64_ubuntu_${{ matrix.tag }}.deb
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: gotify-tray_amd64_ubuntu_${{ matrix.tag }}.deb name: gotify-tray_amd64_ubuntu_${{ matrix.tag }}.deb
path: gotify-tray_amd64_ubuntu_${{ matrix.tag }}.deb path: gotify-tray_amd64_ubuntu_${{ matrix.tag }}.deb
@@ -63,9 +63,9 @@ jobs:
if: ${{ github.actor != 'dependabot[bot]' }} if: ${{ github.actor != 'dependabot[bot]' }}
runs-on: macos-12 runs-on: macos-12
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v2 uses: actions/setup-python@v4
with: with:
python-version: '3.9.5' python-version: '3.9.5'
- name: Upgrade pip and enable wheel support - name: Upgrade pip and enable wheel support
@@ -76,7 +76,7 @@ jobs:
brew install create-dmg brew install create-dmg
create-dmg --volname "Gotify Tray" --app-drop-link 0 0 --no-internet-enable "gotify-tray.dmg" "./dist/Gotify Tray.app" create-dmg --volname "Gotify Tray" --app-drop-link 0 0 --no-internet-enable "gotify-tray.dmg" "./dist/Gotify Tray.app"
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: gotify-tray.dmg name: gotify-tray.dmg
path: gotify-tray.dmg path: gotify-tray.dmg
@@ -84,9 +84,9 @@ jobs:
build-pip: build-pip:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v2 uses: actions/setup-python@v4
with: with:
python-version: '3.9.5' python-version: '3.9.5'
- name: Upgrade pip and enable wheel support - name: Upgrade pip and enable wheel support
@@ -98,6 +98,6 @@ jobs:
- name: create pip package - name: create pip package
run: python -m build run: python -m build
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
path: dist/gotify_tray-*.whl path: dist/gotify_tray-*.whl

View File

@@ -10,9 +10,9 @@ jobs:
build-win64: build-win64:
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Set up Python 3.9 - name: Set up Python 3.9
uses: actions/setup-python@v2 uses: actions/setup-python@v4
with: with:
python-version: '3.9.5' python-version: '3.9.5'
- name: Upgrade pip and enable wheel support - name: Upgrade pip and enable wheel support
@@ -28,7 +28,7 @@ jobs:
mv inno-output\gotify-tray-installer.exe gotify-tray-installer-win.exe mv inno-output\gotify-tray-installer.exe gotify-tray-installer-win.exe
shell: cmd shell: cmd
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: gotify-tray-installer-win.exe name: gotify-tray-installer-win.exe
path: gotify-tray-installer-win.exe path: gotify-tray-installer-win.exe
@@ -39,9 +39,9 @@ jobs:
tag: [focal, jammy] tag: [focal, jammy]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v2 uses: actions/setup-python@v4
with: with:
python-version: '3.9.5' python-version: '3.9.5'
- name: Upgrade pip and enable wheel support - name: Upgrade pip and enable wheel support
@@ -51,7 +51,7 @@ jobs:
make build make build
cp dist/gotify-tray_amd64.deb gotify-tray_amd64_ubuntu_${{ matrix.tag }}.deb cp dist/gotify-tray_amd64.deb gotify-tray_amd64_ubuntu_${{ matrix.tag }}.deb
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: gotify-tray_amd64_ubuntu_${{ matrix.tag }}.deb name: gotify-tray_amd64_ubuntu_${{ matrix.tag }}.deb
path: gotify-tray_amd64_ubuntu_${{ matrix.tag }}.deb path: gotify-tray_amd64_ubuntu_${{ matrix.tag }}.deb
@@ -62,9 +62,9 @@ jobs:
tag: [bullseye, bookworm] tag: [bullseye, bookworm]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v2 uses: actions/setup-python@v4
with: with:
python-version: '3.9.5' python-version: '3.9.5'
- name: Upgrade pip and enable wheel support - name: Upgrade pip and enable wheel support
@@ -74,7 +74,7 @@ jobs:
make build make build
cp dist/gotify-tray_amd64.deb gotify-tray_amd64_debian_${{ matrix.tag }}.deb cp dist/gotify-tray_amd64.deb gotify-tray_amd64_debian_${{ matrix.tag }}.deb
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: gotify-tray_amd64_debian_${{ matrix.tag }}.deb name: gotify-tray_amd64_debian_${{ matrix.tag }}.deb
path: gotify-tray_amd64_debian_${{ matrix.tag }}.deb path: gotify-tray_amd64_debian_${{ matrix.tag }}.deb
@@ -82,9 +82,9 @@ jobs:
build-macos: build-macos:
runs-on: macos-12 runs-on: macos-12
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v2 uses: actions/setup-python@v4
with: with:
python-version: '3.9.5' python-version: '3.9.5'
- name: Upgrade pip and enable wheel support - name: Upgrade pip and enable wheel support
@@ -95,7 +95,7 @@ jobs:
brew install create-dmg brew install create-dmg
create-dmg --volname "Gotify Tray" --app-drop-link 0 0 --no-internet-enable "gotify-tray.dmg" "./dist/Gotify Tray.app" create-dmg --volname "Gotify Tray" --app-drop-link 0 0 --no-internet-enable "gotify-tray.dmg" "./dist/Gotify Tray.app"
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: gotify-tray.dmg name: gotify-tray.dmg
path: gotify-tray.dmg path: gotify-tray.dmg
@@ -103,9 +103,9 @@ jobs:
pypi: pypi:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v2 uses: actions/setup-python@v4
with: with:
python-version: '3.9.5' python-version: '3.9.5'
- name: Upgrade pip and enable wheel support - name: Upgrade pip and enable wheel support
@@ -121,7 +121,7 @@ jobs:
with: with:
password: ${{ secrets.PYPI_API_TOKEN }} password: ${{ secrets.PYPI_API_TOKEN }}
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: gotify_tray-${{ github.ref_name }}-py3-none-any.whl name: gotify_tray-${{ github.ref_name }}-py3-none-any.whl
path: dist/gotify_tray-${{ github.ref_name }}-py3-none-any.whl path: dist/gotify_tray-${{ github.ref_name }}-py3-none-any.whl
@@ -130,7 +130,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [build-win64, build-ubuntu, build-debian, build-macos, pypi] needs: [build-win64, build-ubuntu, build-debian, build-macos, pypi]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: actions/download-artifact@master - uses: actions/download-artifact@master
- name: Release - name: Release
uses: marvinpinto/action-automatic-releases@latest uses: marvinpinto/action-automatic-releases@latest