mirror of
https://github.com/nicoburns/blessed-rs
synced 2024-11-10 06:14:15 +00:00
Only run deploy action on main branch
This commit is contained in:
parent
d2c008b6b1
commit
f8c7b14fda
1 changed files with 9 additions and 1 deletions
10
.github/workflows/github-actions.yml
vendored
10
.github/workflows/github-actions.yml
vendored
|
@ -1,7 +1,13 @@
|
|||
name: Blessed.rs
|
||||
on: [push]
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
env:
|
||||
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Compile binary
|
||||
|
@ -24,9 +30,11 @@ jobs:
|
|||
with:
|
||||
name: blessed-rs-release-binary
|
||||
path: target/release/blessed-rs
|
||||
|
||||
deploy_flyio:
|
||||
name: Deploy to Fly.io
|
||||
runs-on: ubuntu-latest
|
||||
if: github.ref == 'refs/heads/main'
|
||||
needs: build
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
|
|
Loading…
Reference in a new issue