-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (39 loc) · 1.05 KB
/
deploy-website.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
name: 🌎 Deploy Website
on:
workflow_dispatch:
permissions:
contents: write
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
# allows Bundler gem installation (used for fastlane gem)
- name: 💎 Setup Ruby 3.0
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0
- name: 🐙 Setup Github Pages
uses: actions/configure-pages@v5
- name: 🧪 Build with Jekyll
run: |
gem install bundler
bundle config set --local path .bundler
bundle install --jobs "$(nproc)"
cd website
bundle exec jekyll build
- name: 🚀 Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: website/_site