-
Notifications
You must be signed in to change notification settings - Fork 1.7k
41 lines (38 loc) · 1.15 KB
/
daily.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
name: daily
on:
schedule:
- cron: "0 1 * * *"
repository_dispatch:
types: [build-daily]
jobs:
build:
name: Build
#runs-on: SumatraBuilder
runs-on: windows-latest
#runs-on: windows-2019
steps:
# - name: Set up Go
# uses: actions/setup-go@v4
# with:
# go-version: "1.21"
- name: Check out source code
uses: actions/checkout@v4
with:
# needed to calc build number via git log --oneline
fetch-depth: 0
- name: Build
env:
CERT_PWD: ${{ secrets.CERT_PWD }}
R2_SECRET: ${{ secrets.R2_SECRET }}
R2_ACCESS: ${{ secrets.R2_ACCESS }}
BB_SECRET: ${{ secrets.BB_SECRET }}
BB_ACCESS: ${{ secrets.BB_ACCESS }}
run: .\doit.bat -ci-daily
# a separate step from -ci to make logs easier to read
- name: Upload to spaces and s3
env:
R2_SECRET: ${{ secrets.R2_SECRET }}
R2_ACCESS: ${{ secrets.R2_ACCESS }}
BB_SECRET: ${{ secrets.BB_SECRET }}
BB_ACCESS: ${{ secrets.BB_ACCESS }}
run: .\doit.bat -ci-upload