-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (48 loc) · 1.34 KB
/
deploy.yml
File metadata and controls
60 lines (48 loc) · 1.34 KB
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
60
name: Build and Deploy (Landing + Wiki)
on:
push:
branches:
- master
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'
bundler-cache: true
- name: Install Jekyll (remote theme)
run: |
cd wiki
cat << 'EOF' > Gemfile
source "https://rubygems.org"
gem "github-pages", group: :jekyll_plugins
gem "jekyll-remote-theme"
EOF
bundle install --jobs 4 --retry 3
- name: Build wiki
run: |
cd wiki
bundle exec jekyll build -d _site
- name: Combine landing + wiki
run: |
mkdir public
# Copy landing to site root
cp -R landing/* public/
# Put wiki under /wiki
mkdir -p public/wiki
cp -R wiki/_site/wiki/* public/wiki/
# Copy wiki theme assets to /assets
mkdir -p public/assets
cp -R wiki/_site/assets/* public/assets/
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: public