forked from arfc/arfc.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (29 loc) · 828 Bytes
/
Copy pathdeploy-site.yml
File metadata and controls
35 lines (29 loc) · 828 Bytes
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
# Preamble
name: Deploy arfc.github.io to GitHub Pages
on:
push:
branches:
- 'source'
# enable workflow to be run manually
workflow_dispatch:
jobs:
deploy-site:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.0
bundler-cache: true
- name: Build the website source
run: bundle exec rake generate
- name: Deploy website to master branch
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: master
publish_dir: ./_site
commit_message: "Update website at commit: ${{ github.event.head_commit.id }}"