-
Notifications
You must be signed in to change notification settings - Fork 16
39 lines (34 loc) · 958 Bytes
/
deploy.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
name: Deploy Website
on:
push:
branches:
- master
jobs:
linux:
name: Deploy Website
runs-on: ubuntu-20.04
steps:
- name: Clone Repository
uses: actions/checkout@v2
- name: Clone Deploy Repository
uses: actions/checkout@v2
with:
repository: openra/openra.github.io
token: ${{ secrets.DEPLOY_TOKEN }}
path: _site
- name: Build Website
env:
JEKYLL_GITHUB_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
run: |
sudo gem install bundler -v 2.3.26
bundle install
bundle exec jekyll build
- name: Push Website
run: |
cd _site
echo www.openra.net > CNAME
git config --local user.email "actions@github.com"
git config --local user.name "GitHub Actions"
git add --all
git commit -m "Deploy website to GitHub pages"
git push origin master