Skip to content

deploy content changes #47

deploy content changes

deploy content changes #47

name: "Fetch Content Updates"
on: [repository_dispatch, workflow_dispatch]
jobs:
pull_content_updates:
name: pull_content_updates
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.ACCESS_TOKEN }}
submodules: true
- name: Pull submodule
run: |
git pull --recurse-submodules
git submodule update --init --recursive --remote
- name: Push changes
run: |
git config --global user.email "hey@jonathanyeong.com"
git config --global user.name "Jonathan Yeong"
git add .
git commit -m "[Workflow] Updating website content"
git push