Skip to content

Commit 94bef0b

Browse files
authored
Create desktop.yml
1 parent 1e73940 commit 94bef0b

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed

.github/workflows/desktop.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: publish
2+
on:
3+
issues:
4+
types:
5+
- labeled
6+
jobs:
7+
publish-tauri:
8+
if: github.event.label.name == 'desktop-release'
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
platform: [macos-latest, ubuntu-latest, windows-latest]
13+
toolchain: [stable, i686-pc-windows-msvc]
14+
15+
runs-on: ${{ matrix.platform }}
16+
env:
17+
CI: false
18+
steps:
19+
- uses: actions/checkout@v3
20+
- name: setup node
21+
uses: actions/setup-node@v3
22+
with:
23+
node-version: 12
24+
cache: npm
25+
26+
- name: git http
27+
run: |
28+
git config --global url."https://github.com/".insteadOf [email protected]:
29+
git config --global url."https://".insteadOf git://
30+
31+
- name: install Rust stable
32+
if: matrix.platform == 'macos-latest'
33+
uses: actions-rs/toolchain@v1
34+
with:
35+
toolchain: stable
36+
37+
- name: install Rust stable
38+
if: matrix.platform == 'windows-latest'
39+
uses: actions-rs/toolchain@v1
40+
with:
41+
toolchain: ${{ matrix.toolchain }}
42+
43+
- name: install Rust stable
44+
if: matrix.platform == 'ubuntu-latest'
45+
uses: actions-rs/toolchain@v1
46+
with:
47+
toolchain: stable
48+
49+
- name: install webkit2gtk (ubuntu only)
50+
if: matrix.platform == 'ubuntu-latest'
51+
run: |
52+
sudo apt-get update
53+
sudo apt-get install -y webkit2gtk-4.0
54+
55+
- name: ci
56+
run: |
57+
npm ci
58+
59+
- name: install app dependencies and build it
60+
run: npm run build
61+
- uses: tauri-apps/tauri-action@v0
62+
env:
63+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64+
with:
65+
tagName: __VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
66+
releaseName: "Win11inReact v__VERSION__"
67+
releaseBody: ${{ github.event.issue.body }}
68+
releaseDraft: false
69+
prerelease: false

0 commit comments

Comments
 (0)