mirror of
https://github.com/dmasur/database.git
synced 2026-02-02 16:04:22 +01:00
feat(workflow): update bundle workflow to trigger website build for ghtub pages on database update
This commit is contained in:
parent
a6cd46eff6
commit
ed00314d47
16
.github/workflows/bundle.yml
vendored
16
.github/workflows/bundle.yml
vendored
@ -3,25 +3,20 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- stable
|
||||
|
||||
jobs:
|
||||
bundle:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.x"
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install pyyaml
|
||||
|
||||
- name: Run bundling script
|
||||
run: python scripts/bundle.py
|
||||
|
||||
- name: Commit changes
|
||||
run: |
|
||||
git config --local user.email "action@github.com"
|
||||
@ -29,8 +24,9 @@ jobs:
|
||||
git add bundles/
|
||||
git commit -m "Update bundles" || echo "No changes to commit"
|
||||
git push
|
||||
|
||||
- name: Trigger Vercel Deploy
|
||||
if: success()
|
||||
run: |
|
||||
curl -X POST "${{ secrets.VERCEL_DEPLOY_HOOK_URL }}"
|
||||
- name: Trigger Website Build
|
||||
uses: peter-evans/repository-dispatch@v3
|
||||
with:
|
||||
token: ${{ secrets.WORKFLOW_AUTOMATION_TOKEN }}
|
||||
repository: Dictionarry-Hub/website
|
||||
event-type: database-updated
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user