-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (63 loc) · 2.5 KB
/
Copy pathrelease.yml
File metadata and controls
73 lines (63 loc) · 2.5 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Release
on:
push:
tags:
- 'v*'
workflow_dispatch:
inputs:
tag:
description: 'Existing v* release tag to build and upload'
required: true
type: string
concurrency:
group: release-${{ github.event_name == 'workflow_dispatch' && inputs.tag || github.ref }}
cancel-in-progress: false
jobs:
# A tag used to go straight to build-sign-publish with no checks at all: a
# broken commit could be signed and shipped to users. The release now gates on
# the CI workflow itself, so the bar for publishing is the same bar as for
# merging, and it cannot silently drift out of sync with it.
verify:
name: Verify
uses: ./.github/workflows/ci.yml
with:
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.tag || github.ref }}
release:
needs: verify
runs-on: windows-latest
timeout-minutes: 45
permissions:
contents: write
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.tag || github.ref }}
- name: Setup Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
# Pinned to the same major the CI workflow and package.json engines
# require. `lts/*` floats, and a release must not build on a runtime
# the test suite never ran on.
node-version: 22
cache: npm
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@4be7066ada62dd38de10e7b70166bc74ed198c30 # stable
- name: Cache Rust build artifacts
uses: swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
with:
workspaces: './apps/desktop/src-tauri -> target'
- name: Install npm dependencies
run: npm ci
- name: Build and publish Tauri release
uses: tauri-apps/tauri-action@84b9d35b5fc46c1e45415bdb6144030364f7ebc5 # v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
with:
tagName: ${{ github.event_name == 'workflow_dispatch' && inputs.tag || github.ref_name }}
releaseName: 'Splice Shell v__VERSION__'
releaseBody: 'See the changelog for details.'
releaseDraft: true
prerelease: false
projectPath: './apps/desktop'