-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (38 loc) · 1.45 KB
/
release_build_macos.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: "release-build-macos"
on:
push:
tags:
- "*.*.*"
jobs:
build:
strategy:
fail-fast: false
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Set Tauri signature private key
run: echo "TAURI_PRIVATE_KEY=${{ secrets.TAURI_PRIVATE_KEY }}" >> $GITHUB_ENV
- name: Set Tauri signature private key password
run: echo "TAURI_KEY_PASSWORD=${{ secrets.TAURI_KEY_PASSWORD }}" >> $GITHUB_ENV
- name: setup node
uses: actions/setup-node@v3
with:
node-version: 16
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: build
env:
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
run: npm install && npm run deploy
- name: Attach files to release
uses: softprops/action-gh-release@v1
with:
files: |
src-tauri/target/release/bundle/dmg/Getdeck-Desktop_${{ github.ref_name }}_x64.dmg
src-tauri/target/release/bundle/macos/Getdeck-Desktop.app
src-tauri/target/release/bundle/macos/Getdeck-Desktop.app.tar.gz
src-tauri/target/release/bundle/macos/Getdeck-Desktop.app.tar.gz.sig