-
-
Notifications
You must be signed in to change notification settings - Fork 1
30 lines (26 loc) · 866 Bytes
/
deploy.yml
File metadata and controls
30 lines (26 loc) · 866 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Sync website & deploy
on:
push:
branches: [main]
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout website repo
uses: actions/checkout@v6
with:
repository: spraxium/website
token: ${{ secrets.CROSS_REPO_TOKEN }}
submodules: true
fetch-depth: 0
- name: Update content submodule to latest
run: |
git submodule update --init --remote --recursive
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add content
git diff --cached --quiet || git commit -m "chore(content): sync docs submodule [skip ci]"
git push
# go back later
# - name: Trigger Vercel deploy
# run: curl -X POST "${{ secrets.VERCEL_DEPLOY_HOOK }}"