Skip to content

Commit 0e767c2

Browse files
authored
fix
1 parent 94bef0b commit 0e767c2

File tree

1 file changed

+40
-16
lines changed

1 file changed

+40
-16
lines changed

.github/workflows/desktop.yml

Lines changed: 40 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
platform: [macos-latest, ubuntu-latest, windows-latest]
13-
toolchain: [stable, i686-pc-windows-msvc]
1413

1514
runs-on: ${{ matrix.platform }}
1615
env:
@@ -29,30 +28,16 @@ jobs:
2928
git config --global url."https://".insteadOf git://
3029
3130
- name: install Rust stable
32-
if: matrix.platform == 'macos-latest'
3331
uses: actions-rs/toolchain@v1
3432
with:
3533
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-
4934
- name: install webkit2gtk (ubuntu only)
5035
if: matrix.platform == 'ubuntu-latest'
5136
run: |
5237
sudo apt-get update
5338
sudo apt-get install -y webkit2gtk-4.0
5439
55-
- name: ci
40+
- name: CI
5641
run: |
5742
npm ci
5843
@@ -67,3 +52,42 @@ jobs:
6752
releaseBody: ${{ github.event.issue.body }}
6853
releaseDraft: false
6954
prerelease: false
55+
56+
publish-32:
57+
if: github.event.label.name == 'desktop-release'
58+
runs-on: windows-latest
59+
env:
60+
CI: false
61+
steps:
62+
- uses: actions/checkout@v3
63+
- name: setup node
64+
uses: actions/setup-node@v3
65+
with:
66+
node-version: 12
67+
cache: npm
68+
69+
- name: git http
70+
run: |
71+
git config --global url."https://github.com/".insteadOf [email protected]:
72+
git config --global url."https://".insteadOf git://
73+
74+
- name: install Rust i686-pc-windows-msvc
75+
uses: actions-rs/toolchain@v1
76+
with:
77+
toolchain: i686-pc-windows-msvc
78+
79+
- name: CI
80+
run: |
81+
npm ci
82+
83+
- name: install app dependencies and build it
84+
run: npm run build
85+
- uses: tauri-apps/tauri-action@v0
86+
env:
87+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
88+
with:
89+
tagName: __VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
90+
releaseName: "Win11inReact v__VERSION__"
91+
releaseBody: ${{ github.event.issue.body }}
92+
releaseDraft: false
93+

0 commit comments

Comments
 (0)