-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (35 loc) · 988 Bytes
/
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
name: Deploy Nightly
on:
push:
schedule:
- cron: '30 7 * * *'
workflow_dispatch:
jobs:
pre-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: npm install -g semver
- run: echo "version=$(semver "$(cat version.txt)" -i patch)" > $GITHUB_OUTPUT
id: out
outputs:
version: ${{ steps.out.outputs.version }}
build:
needs: pre-build
uses: ./.github/workflows/build-linux.yml
with:
channel: nightly
version: ${{ needs.pre-build.outputs.version }}
changelog: "New Nightly Snapshot"
versionsdbremote: master
deploy:
if: ${{ github.event_name != 'push' || github.ref_type == 'branch' && github.ref_name == github.event.repository.default_branch }}
permissions:
contents: read
pages: write
id-token: write
needs: build
uses: ./.github/workflows/update-repo.yml
secrets: inherit
with:
channel: nightly