-
Notifications
You must be signed in to change notification settings - Fork 2
57 lines (47 loc) · 1.45 KB
/
ci-ubuntu.yml
File metadata and controls
57 lines (47 loc) · 1.45 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
52
53
54
55
56
57
name: Ubuntu build
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Initialise variables
run: |
if [[ '${{ github.ref }}' == 'refs/heads/master' ]]; then
echo "RECIPTACLE_DEPLOY=true" >> $GITHUB_ENV
fi
########################################################################
## INSTALLATION STEPS
########################################################################
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y markdown
########################################################################
## BUILD
########################################################################
# By default github actions do not pull the repo
- name: Checkout stdlib
uses: actions/checkout@v2
- name: Build website
run: |
cd html
make
cd ..
mkdir deploy
mv html/*.html html/*.css deploy/
########################################################################
## DEPLOYMENT
########################################################################
- name: Deploy HTML
uses: JamesIves/github-pages-deploy-action@4.1.3
if: ${{ success() && env.RECIPTACLE_DEPLOY }}
with:
branch: gh-pages
folder: deploy
git-config-name: Github Actions