ci: build only on main, also nightly cronjob

This commit is contained in:
Rekai Nyangadzayi Musuka 2022-10-31 08:02:44 -03:00
parent 1bf2c0b400
commit 6c77b952cd
1 changed files with 7 additions and 2 deletions

View File

@ -1,4 +1,9 @@
on: [push, workflow_dispatch] on:
push:
branches:
- main
schedule:
- cron: '0 0 * * *'
jobs: jobs:
build: build:
@ -33,7 +38,7 @@ jobs:
- name: upload - name: upload
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: build-${{matrix.os}} name: zba-${{matrix.os}}
path: zig-out/bin path: zig-out/bin
lint: lint:
runs-on: ubuntu-latest runs-on: ubuntu-latest