Skip to content

Commit

Permalink
fix(workflow): try to commit built binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
camarm-dev committed Jul 5, 2024
1 parent d90807f commit dcec174
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ on:
- main
- dev



jobs:
publish-tauri:
permissions:
Expand Down Expand Up @@ -65,9 +63,31 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: app-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version.
releaseName: 'App v__VERSION__'
releaseBody: 'See the assets to download this version and install.'
releaseName: '__VERSION__'
releaseBody: '## `__VERSION__`: Unknown Codename'
releaseDraft: true
prerelease: false
projectPath: ./app
args: ${{ matrix.args }}

- name: Copy DEB binary
if: matrix.platform == 'ubuntu-22.04'
run: cp /home/runner/work/remede/remede/app/src-tauri/target/release/bundle/deb /home/runner/work/remede/remede/builds/remede.deb

- name: Copy x64 DMG binary
if: matrix.platform == 'macos-latest' && matrix.args == '--target x86_64-apple-darwin'
run: |
cp /Users/runner/work/remede/remede/app/src-tauri/target/x86_64-apple-darwin/release/bundle/macos/remede.app /Users/runner/work/remede/remede/builds/remede.x64.app
cp /Users/runner/work/remede/remede/app/src-tauri/target/x86_64-apple-darwin/release/bundle/dmg/*.dmg /Users/runner/work/remede/remede/builds/remede.x64.dmg
- name: Copy aarch64 DMG binary
if: matrix.platform == 'macos-latest' && matrix.args == '--target aarch64-apple-darwin'
run: |
cp /Users/runner/work/remede/remede/app/src-tauri/target/aarch64-apple-darwin/release/bundle/macos/*.app /Users/runner/work/remede/remede/builds/remede.aarch64.app
cp /Users/runner/work/remede/remede/app/src-tauri/target/aarch64-apple-darwin/release/bundle/dmg/*.dmg /Users/runner/work/remede/remede/builds/remede.aarch64.dmg
- name: Commit binaries
run: |
git add builds/*
git commit -m "chore(binaries): added latest Remède binaries"
git push

0 comments on commit dcec174

Please sign in to comment.