-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (40 loc) · 1.14 KB
/
pages-deploy.yml
File metadata and controls
51 lines (40 loc) · 1.14 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
name: CI
on:
push:
branches:
- main
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
bundler-cache: true
- name: Install dependencies
run: bundle install
- name: Build English site
run: bundle exec jekyll build -d ./generated/en --source ./blog/en --config _config_en.yml
- name: Build Portuguese site
run: bundle exec jekyll build -d ./generated/pt --source ./blog/pt --config _config_pt.yml
- name: Copy sites
run: |
mkdir -p en
mkdir -p pt
cp -r ./generated/en/* en
cp -r ./generated/pt/* pt
- name: Copy index.html to root
run: cp blog/index.html ./generated/index.html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./generated