Merge pull request #57 from barrettruth/fix/ci

fix(ci): only deploy on ci success
This commit is contained in:
Barrett Ruth 2026-01-22 08:19:37 -06:00 committed by GitHub
commit 743fc99a1c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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