Skip to content

Commit

Permalink
Trigger deploy after update-library workflow runs
Browse files Browse the repository at this point in the history
  • Loading branch information
katydecorah committed May 20, 2024
1 parent 962dfda commit be240c9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Deploy to Pages

on:
# After update-library.yaml runs, trigger deployment
repository_dispatch:
types: [trigger-deploy]
# Runs on pushes targeting the default branch
push:
branches: gh-pages
Expand Down Expand Up @@ -38,6 +41,9 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Test
run: npm test

- name: Build with 11ty
run: npm run build

Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/update-library.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,8 @@ jobs:
gh pr create -B gh-pages -H "review-tags-${{ github.run_id }}" --fill
env:
GH_TOKEN: ${{ github.token }}

- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v3
with:
event-type: trigger-deploy

0 comments on commit be240c9

Please sign in to comment.