-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgithub-wf.yml
47 lines (38 loc) · 1.1 KB
/
github-wf.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
name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Clone viewer code
uses: actions/checkout@v2
with:
repository: vasyaod/my-trips-viewer
path: code-repo
- name: Clone repo of pages
uses: actions/checkout@v2
with:
repository: vasyaod/my-tracks # <- Please, set Github pages repo here
path: pages-repo
- name: Clone data
uses: actions/checkout@v2
with:
path: data-repo
- name: Generate static pages
run: |
./code-repo/generate
- name: Commit Github pages
run: |
cd pages-repo
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
git commit -m "Add changes" -a
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
external_repository: vasyaod/my-tracks # <- Please, set Github pages repo here
publish_branch: main
publish_dir: ./pages-repo
force_orphan: true