Skip to content

Commit

Permalink
chore: test: fix missing env & upload binaries to release
Browse files Browse the repository at this point in the history
* also fix typos
  • Loading branch information
keiko233 committed Nov 25, 2023
1 parent b09331e commit d4a0022
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions .github/workflows/macos-aarch64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,32 @@ jobs:
pnpm check --arch arm64 --sidecar-host aarch64-apple-darwin
- name: Tauri build (cmd)
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
run: |
pnpm build --target aarch64-apple-darwin
mv ./src-tauri/target/aarch64-apple-darwin/release/bundle/macos/Clash Nyanpasu.app ./src-tauri/target/aarch64-apple-darwin/release/bundle/macos/Clash Nyanpasu.aarch64.app
mv ./src-tauri/target/aarch64-apple-darwin/release/bundle/macos/Clash Nyanpasu.app.tar.gz ./src-tauri/target/aarch64-apple-darwin/release/bundle/macos/Clash Nyanpasu.aarch64.app.tar.gz
mv "./src-tauri/target/aarch64-apple-darwin/release/bundle/macos/Clash Nyanpasu.app" "./src-tauri/target/aarch64-apple-darwin/release/bundle/macos/Clash Nyanpasu.aarch64.app"
mv "./src-tauri/target/aarch64-apple-darwin/release/bundle/macos/Clash Nyanpasu.app.tar.gz" "./src-tauri/target/aarch64-apple-darwin/release/bundle/macos/Clash Nyanpasu.aarch64.app.tar.gz"
macos-aarch64-upload:
needs: macos-aarch64
strategy:
matrix:
paths:
[
macos/Clash Nyanpasu.aarch64.app,
macos/Clash Nyanpasu.aarch64.app.tar.gz,
dmg/Clash Nyanpasu_1.4.0_aarch64.dmg,
]

runs-on: ubuntu-latest
steps:
- name: Upload binaries to release (${{ matrix.paths }})
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GH_TOKEN }}
file: src-tauri/target/aarch64-apple-darwin/release/bundle/${{ matrix.paths }}
tag: dev
prerelease: true

0 comments on commit d4a0022

Please sign in to comment.