Skip to content

Commit d080fdd

Browse files
author
share121
committed
feat: 发布 0.1.0 版本
1 parent 81d5786 commit d080fdd

File tree

1 file changed

+97
-0
lines changed

1 file changed

+97
-0
lines changed

.github/workflows/publish.yml

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
name: publish
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
publish-tauri:
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
matrix:
17+
build:
18+
- linux-arm64
19+
- linux-64bit
20+
- macos-arm64
21+
- macos-64bit
22+
- windows-64bit
23+
- windows-32bit
24+
- windows-arm64
25+
include:
26+
- build: linux-arm64
27+
os: ubuntu-22.04-arm
28+
target: aarch64-unknown-linux-musl
29+
archive-name: fast-down-linux-arm64
30+
- build: linux-64bit
31+
os: ubuntu-22.04
32+
target: x86_64-unknown-linux-musl
33+
archive-name: fast-down-linux-64bit
34+
- build: macos-arm64
35+
os: macos-13
36+
target: aarch64-apple-darwin
37+
archive-name: fast-down-macos-arm64
38+
- build: macos-64bit
39+
os: macos-13
40+
target: x86_64-apple-darwin
41+
archive-name: fast-down-macos-64bit
42+
- build: windows-64bit
43+
os: windows-2022
44+
target: x86_64-pc-windows-msvc
45+
archive-name: fast-down-windows-64bit
46+
- build: windows-32bit
47+
os: windows-2022
48+
target: i686-pc-windows-msvc
49+
archive-name: fast-down-windows-32bit
50+
- build: windows-arm64
51+
os: windows-11-arm
52+
target: aarch64-pc-windows-msvc
53+
archive-name: fast-down-windows-arm64
54+
fail-fast: false
55+
56+
steps:
57+
- uses: actions/checkout@v4
58+
59+
- name: setup node
60+
uses: actions/setup-node@v4
61+
with:
62+
node-version: lts/*
63+
64+
- name: Install Rust stable
65+
uses: dtolnay/rust-toolchain@stable
66+
with:
67+
targets: ${{ matrix.target }}
68+
69+
- name: install dependencies (linux only)
70+
if: contains(matrix.build, 'linux')
71+
run: |
72+
sudo apt-get update
73+
sudo apt-get install -y musl-tools libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
74+
75+
- name: Configure sccache-cache
76+
uses: mozilla-actions /[email protected]
77+
if: matrix.build != 'windows-arm64'
78+
- name: Set Rust Caching Env
79+
if: matrix.build != 'windows-arm64'
80+
run: |
81+
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
82+
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
83+
84+
- name: install frontend dependencies
85+
run: bun install
86+
87+
- uses: tauri-apps/tauri-action@v0
88+
env:
89+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
90+
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
91+
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
92+
with:
93+
tagName: fast-down-v__VERSION__
94+
releaseName: "fast-down v__VERSION__"
95+
releaseBody: "See the assets to download this version and install."
96+
updaterJsonPreferNsis: true
97+
args: "--target ${{ matrix.target }}"

0 commit comments

Comments
 (0)