Skip to content

Commit

Permalink
update github action
Browse files Browse the repository at this point in the history
  • Loading branch information
wilinz committed Jan 22, 2024
1 parent 9460b01 commit 3fa3b43
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/build-linux-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,24 @@ jobs:

- name: Build Compose Desktop
run: |
chmod 0777 ./gradlew
chmod +x ./gradlew
./gradlew packageDeb
./gradlew packageRpm
ls build/compose/binaries/main
- name: Rename
run: |
cd build/compose/binaries/main/deb
for file in *.deb; do mv "$file" "$(basename "$file" .deb)-linux.deb"; done
cd ../rpm
for file in *.rpm; do mv "$file" "$(basename "$file" .rpm)-linux.rpm"; done
- name: Upload to Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
build/compose/binaries/main/deb/*
build/compose/binaries/main/rpm/*
build/compose/binaries/main/deb/*
build/compose/binaries/main/rpm/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 4 additions & 1 deletion .github/workflows/build-macos-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,12 @@ jobs:

- name: Build Compose Desktop
run: |
chmod 0777 ./gradlew
chmod +x ./gradlew
./gradlew packageDmg
- name: Rename DMG file
run: mv build/compose/binaries/main/dmg/*.dmg build/compose/binaries/main/dmg/*-macos.dmg

- name: Upload to Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/build-windows-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,17 @@ jobs:
- name: Package as exe
run: iscc innosetup/setup.iss

- name: Rename files
run: |
Get-ChildItem -Path "build\compose\binaries\main\msi\" -Filter "*.msi" | Rename-Item -NewName { $_.Name -replace '\.msi$', '-windows.msi' }
Get-ChildItem -Path "innosetup\output\release\" -Filter "*.exe" | Rename-Item -NewName { $_.Name -replace '\.exe$', '-windows.exe' }
- name: Upload to Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
build/compose/binaries/main/msi/*.msi
innosetup/output/release/*.exe
build/compose/binaries/main/msi/*-windows.msi
innosetup/output/release/*-windows.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 3fa3b43

Please sign in to comment.