-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (42 loc) · 1.13 KB
/
sync.yml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# @credits: https://stackoverflow.com/a/67059629
on:
workflow_dispatch:
permissions:
contents: write
pages: write
id-token: write
jobs:
sync:
name: 'Submodules Sync'
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
- name: Git Sumbodule Update
run: |
git pull --recurse-submodules
git submodule update --remote --recursive
- name: Commit update
run: |
git config --global user.name 'CI'
git config --global user.email '[email protected]'
git commit -am "Auto updated submodules" && git push || echo "No changes to commit"
- name: Install, build, and upload your site
uses: withastro/action@v0
with:
package-manager: npm # cry about it https://i.imgur.com/AFdIEgc.png
deploy:
needs: sync
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1