-
Notifications
You must be signed in to change notification settings - Fork 12
50 lines (47 loc) · 1.47 KB
/
nightly.yml
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
name: Nightly Release
on:
# 當 Build Tiefsee 工作流程完成時
workflow_run:
workflows: ["Build Tiefsee"]
types:
- completed
#schedule:
# - cron: '00 16 * * *' # GitHub Actions use UTC time
jobs:
check:
runs-on: ubuntu-latest
outputs:
changes: ${{ steps.nightly-check.outputs.changes }}
steps:
- id: nightly-check
name: Check for changes since the last nightly
uses: lukecarr/[email protected]
nightly-release:
needs: check
if: ${{ needs.check.outputs.changes == 'true' }}
permissions:
id-token: write
contents: write
pull-requests: write
actions: read
name: Create Nightly Release
runs-on: ubuntu-latest
steps:
- name: Download artifact
uses: dawidd6/action-download-artifact@v2
with:
github_token: ${{secrets.GITHUB_TOKEN}}
workflow: build.yml
workflow_conclusion: success
branch: master
- name: Update Nightly Release
uses: andelf/nightly-release@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: nightly
name: "Tiefsee Nightly Release $$"
prerelease: true
body: "This is the Nightly version, compiled from the latest code committed to GitHub, and may be unstable.<br>此為 Nightly 版,以 GitHub 最新提交的程式碼編譯而成,可能存在不穩定。"
files: |
./Tiefsee/Tiefsee.zip