-
-
Notifications
You must be signed in to change notification settings - Fork 28
54 lines (51 loc) · 1.59 KB
/
nightly.yml
File metadata and controls
54 lines (51 loc) · 1.59 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
name: Nightly Build
env:
VER_MAJOR: 26
VER_MINOR: 4
VER_PATCH: 0
on:
workflow_dispatch:
jobs:
nightly-build:
uses: ./.github/workflows/ci.yml
with:
nightly: true
code-signing:
needs: [nightly-build]
uses: ./.github/workflows/code-signing.yml
with:
signing-policy-slug: release-signing
github-artifact-id: ${{ needs.nightly-build.outputs.unsigned-artifact-id }}
secrets:
api-token: ${{ secrets.SIGNPATH_API_TOKEN }}
nightly-release:
runs-on: ubuntu-latest
name: Nightly Release
if: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
needs: [code-signing]
permissions:
contents: write
steps:
- uses: actions/checkout@v6
- name: Download Installer Artifact
uses: actions/download-artifact@v8
with:
name: Installer Artifact
path: build/installer
- uses: actions/download-artifact@v8
with:
name: Signed Installer
path: dist
- name: GH Release
uses: softprops/action-gh-release@v2.6.1
with:
tag_name: nightly-${{env.VER_MAJOR}}.${{env.VER_MINOR}}.${{env.VER_PATCH}}.${{github.run_number}}
name: 預覽版 ${{env.VER_MAJOR}}.${{env.VER_MINOR}}.${{env.VER_PATCH}}.${{github.run_number}}
draft: true
prerelease: true
preserve_order: true
body: |
這是開發中的測試用版本。若不確定,請使用最新的穩定版。
files: |
dist/windows-chewing-tsf.msi
dist/windows-chewing-tsf.msi.sha256