-
Notifications
You must be signed in to change notification settings - Fork 8
50 lines (43 loc) · 1.32 KB
/
.github-pages.yaml
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
name: Build and deploy Jekyll site to GitHub Pages
on:
push:
branches:
- main
repository_dispatch:
types: [build]
jobs:
github-pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
- run: |
npm install -g staticrypt
- name: 💎 setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- name: Getting the internal webpage component
uses: actions/checkout@v2
with:
repository: aria-systems-group/website-internal-page
path: ./aria-internal-site
token: ${{ secrets.GHACTION_TOKEN }}
- run: bundle lock
- name: Building the website
uses: limjh16/jekyll-action-ts@v2
with:
enable_cache: true
- name: Encrypting the internal webpage
run: |
ls ./_site
staticrypt ./_site/internal.html -p ${{ secrets.INTERNAL_PAGE_PW }} --short
mv ./encrypted/internal.html ./_site/internal.html
- name: 🚀 Deploying the website
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GHACTION_TOKEN }}
publish_dir: ./_site
cname: ariasystems.group