-
Notifications
You must be signed in to change notification settings - Fork 9
32 lines (26 loc) · 1.15 KB
/
building.yaml
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
name: test
on: [push]
jobs:
check-bats-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.ACTIONS_DEPLOY_KEY}}
name: id_rsa # optional
known_hosts: github.com
if_key_exists: fail # replace / ignore / fail; optional (defaults to fail)
- name: cloning the public repository
run: git clone ${{secrets.DEPLOY_REPOSITORY}} ../public
- name: make cider executable
run: chmod +x ./cider
- name: run cider to generate the entire site
run: ./cider -o ../public
- name: sync resouce
run: rsync -avr --progress ./rs/images ../public/ --delete
- name: set git commit name and email
run: git config --global user.name actionBot && git config --global user.email [email protected]
- name: Deploy
run: cd ../public && git add . && git commit -m 'update' && git push origin master