Skip to content

Commit

Permalink
fix pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
samluiz committed May 24, 2024
1 parent 88be1d9 commit b1be785
Showing 1 changed file with 23 additions and 11 deletions.
34 changes: 23 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,17 @@ jobs:
- name: Build for macOS/arm64
run: |
wails build -platform darwin/arm64 -ldflags "-X main.Version=$GITHUB_REF_NAME"
wails build -platform darwin/universal -ldflags "-X main.Version=$GITHUB_REF_NAME"
- name: Zip macOS arm64 binary
run: |
zip -r Dolphin_MacOS.zip ./build/bin/Dolphin.app
- name: Upload macOS arm64 binary
uses: actions/upload-artifact@v4
with:
name: Dolphin_MacOS
path: ./build/bin/Dolphin.app
path: Dolphin_MacOS.zip

build-windows-and-linux:
environment:
Expand Down Expand Up @@ -62,22 +66,30 @@ jobs:
wails build -platform windows/amd64 -ldflags "-X main.Version=$GITHUB_REF_NAME" --nsis
mv ./build/bin ./build/Dolphin_Windows_Amd64-Setup
- name: Zip Windows amd64 installer
run: |
zip -r Dolphin_Windows_Setup.zip ./build/Dolphin_Windows_Amd64-Setup
- name: Build for Linux/amd64
run: |
wails build -platform linux/amd64 -ldflags "-X main.Version=$GITHUB_REF_NAME"
mv ./build/bin ./build/Dolphin_Linux_Amd64
- name: Zip Linux amd64 binary
run: |
zip -r Dolphin_Linux.zip ./build/Dolphin_Linux_Amd64
- name: Upload Windows/amd64 installer
uses: actions/upload-artifact@v4
with:
name: Dolphin_Windows_Setup
path: ./build/Dolphin_Windows_Amd64-Setup
path: Dolphin_Windows_Setup.zip

- name: Upload Linux/amd64 binary
uses: actions/upload-artifact@v4
with:
name: Dolphin_Linux
path: ./build/Dolphin_Linux_Amd64
path: Dolphin_Linux.zip

create-release:
environment:
Expand All @@ -95,27 +107,27 @@ jobs:
uses: actions/download-artifact@v4
with:
name: Dolphin_MacOS
path: ./Dolphin_MacOS
path: ./Dolphin_MacOS.zip

- name: Download Windows amd64 installer
uses: actions/download-artifact@v4
with:
name: Dolphin_Windows_Setup
path: ./Dolphin_Windows_Setup
path: ./Dolphin_Windows_Setup.zip

- name: Download Linux amd64 binary
uses: actions/download-artifact@v4
with:
name: Dolphin_Linux
path: ./Dolphin_Linux
path: ./Dolphin_Linux.zip

- name: Create Release
id: create_release
uses: softprops/action-gh-release@v2
with:
files: |
./Dolphin_MacOS
./Dolphin_Windows_Setup
./Dolphin_Linux
./Dolphin_MacOS.zip
./Dolphin_Windows_Setup.zip
./Dolphin_Linux.zip
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

0 comments on commit b1be785

Please sign in to comment.