-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (50 loc) · 1.3 KB
/
deploy-gh-pages.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
53
54
55
56
57
58
59
name: deploy gh-pages
on:
repository_dispatch:
types:
- build-site
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
uses: actions/jekyll-build-pages@v1
with:
source: '.'
destination: './_site'
- name: Checkout 1ed
uses: actions/checkout@v3
with:
repository: 'associacaosilo/labdeemergencia1ed'
ref: 'gh-pages'
path: '1ed'
- name: Checkout 2ed
uses: actions/checkout@v3
with:
repository: 'associacaosilo/labdeemergencia2ed'
ref: 'gh-pages'
path: '2ed'
- name: Checkout 3ed
uses: actions/checkout@v3
with:
repository: 'associacaosilo/labdeemergencia3ed'
ref: 'gh-pages'
path: '3ed'
- name: Bundle
run: |
mkdir ./public
cp -r ./_site/* ./public/
cp -r CNAME .nojekyll ./public/
cp -r 1ed 2ed 3ed ./public/
find ./public -name .git | xargs rm -rf
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
publish_branch: gh-pages