Merge pull request #57 from barrettruth/fix/ci
fix(ci): only deploy on ci success
This commit is contained in:
commit
743fc99a1c
1 changed files with 8 additions and 3 deletions
|
|
@ -1,12 +1,17 @@
|
|||
name: Deploy to AWS S3
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
workflow_run:
|
||||
workflows: ["CI"]
|
||||
types:
|
||||
- completed
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
if: >
|
||||
github.event.workflow_run.conclusion == 'success' &&
|
||||
github.event.workflow_run.head_branch == 'main'
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
Loading…
Add table
Add a link
Reference in a new issue