fix: fix the workflow to only run on main branch
This commit is contained in:
parent
c03f2751f0
commit
5caa94f71d
2 changed files with 10 additions and 3 deletions
|
@ -1,3 +1,5 @@
|
|||
name: Check code passes formatting and lint rules
|
||||
|
||||
on: [push]
|
||||
jobs:
|
||||
check:
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
on: [push]
|
||||
name: Build and create binary artifact
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
release:
|
||||
runs-on: docker
|
||||
|
@ -8,5 +13,5 @@ jobs:
|
|||
- run: cargo build --release
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: binary
|
||||
path: target/release/forgejo_automate
|
||||
name: binary
|
||||
path: target/release/forgejo_automate
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue