forked from act-rules/act-rules.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (27 loc) · 879 Bytes
/
publish.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
# This workflow does the below:
# - updates the master branch (github pages)
# Is triggred:
# - by a dispatch event to run this workflow (generated from the master branch push of website repo)
name: publish
on:
repository_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: 'master'
- uses: actions/setup-node@v3
with:
node-version: 16
cache: npm
- run: |
git config user.name "${{ secrets.USER_NAME }}"
git config user.email "${{ secrets.USER_EMAIL }}"
git clone -b master "https://${{ secrets.USER_PAT }}@github.com/act-rules/act-rules-web"
cp -r act-rules-web/* .
rm -rf act-rules-web/
git add -fA
git commit --allow-empty -m "chore: update website"
git push -u origin master