Skip to content

Commit

Permalink
Update release action
Browse files Browse the repository at this point in the history
  • Loading branch information
xypwn committed May 10, 2024
1 parent e8ad28f commit 222e8dc
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
- 'v*'
pull_request:

permissions:
contents: write
packages: write

jobs:
build-windows:
runs-on: windows-latest
Expand All @@ -21,7 +25,6 @@ jobs:
cache: true
- run: go install fyne.io/fyne/v2/cmd/fyne@latest
- run: cd ./cmd/southpark-downloader-ui && fyne package --release
- run: ls ./cmd/southpark-downloader-ui .
- run: mv ./cmd/southpark-downloader-ui/southpark-downloader-ui.exe southpark-downloader-ui-windows-amd64.exe
- uses: actions/upload-artifact@v4
with:
Expand All @@ -41,7 +44,6 @@ jobs:
- run: sudo apt update && sudo apt install gcc libegl1-mesa-dev xorg-dev
- run: go install fyne.io/fyne/v2/cmd/fyne@latest
- run: cd ./cmd/southpark-downloader-ui && fyne package --release
- run: ls ./cmd/southpark-downloader-ui .
- run: mv ./cmd/southpark-downloader-ui/southpark-downloader-ui.tar.xz southpark-downloader-ui-linux-amd64.tar.xz
- uses: actions/upload-artifact@v4
with:
Expand All @@ -60,7 +62,6 @@ jobs:
cache: true
- run: go install fyne.io/fyne/v2/cmd/fyne@latest
- run: cd ./cmd/southpark-downloader-ui && fyne package --release
- run: ls ./cmd/southpark-downloader-ui .
- run: mv ./cmd/southpark-downloader-ui/southpark-downloader-ui.app southpark-downloader-ui-macos-amd64.app
- run: tar czf southpark-downloader-ui-macos-amd64.tar.gz southpark-downloader-ui-macos-amd64.app
- uses: actions/upload-artifact@v4
Expand All @@ -70,7 +71,7 @@ jobs:

release:
runs-on: ubuntu-latest
needs: [build-windows, build-linux]
needs: [build-windows, build-linux, build-macos]
steps:
- uses: actions/download-artifact@v4
with:
Expand Down

0 comments on commit 222e8dc

Please sign in to comment.