blob: e7e8b09fcfbc7abc4a8f4555aeb3cccc793ae22a (
plain)
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
|
name: update site
on: workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Rename readme files
run: |
./scripts/update_site.sh
git config --global user.name 'GitHub Action'
git config --global user.email 'action@github.com'
git add ./_widgets
git commit -m "update from master"
git fetch
git checkout gh-pages
git merge master
git checkout master
git reset --hard HEAD~3 # Go back 3 commits. You *will* lose uncommitted work.
git checkout gh-pages
git push origin gh-pages
|