diff --git a/.github/workflows/macos-aarch64.yaml b/.github/workflows/macos-aarch64.yaml index a4dcf04b89f..e6eda0ad122 100644 --- a/.github/workflows/macos-aarch64.yaml +++ b/.github/workflows/macos-aarch64.yaml @@ -43,7 +43,19 @@ 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 + + - name: Upload binaries to release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GH_TOKEN }} + file: src-tauri/target/aarch64-apple-darwin/release/bundle/**/* + tag: dev + prerelease: true