daily #688
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Daily build | |
on: | |
schedule: | |
- cron: "0 1 * * *" | |
jobs: | |
build: | |
name: Build | |
runs-on: windows-2022 | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.19 | |
- name: Check out source code | |
uses: actions/checkout@v3 | |
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 |