-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (32 loc) · 1.04 KB
/
build.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
name: test
# Run on pull requests and on the master branch itself.
on:
push:
branches:
- master
tags:
- "*"
pull_request:
workflow_dispatch:
jobs:
build_and_deploy:
runs-on: ubuntu-20.04
steps:
# Checkout the code.
- uses: actions/checkout@v2
- name: build
run: |
docker compose run builder python3 fix-uppercase-lowercase.py
docker compose run builder make html latexpdf
docker compose run builder cp build/latex/3di.pdf build/html
zip -r threedi-docs.zip build/html
- name: Publish tags on https://docs.3di.live
if: startsWith(github.event.ref, 'refs/tags')
run: bash upload-artifact.sh production
env:
ARTIFACTS_KEY_PRODUCTION: ${{ secrets.ARTIFACTS_KEY_PRODUCTION }}
- name: Publish master to https://docs.staging.3di.live
if: github.event.ref == 'refs/heads/master'
run: bash upload-artifact.sh staging
env:
ARTIFACTS_KEY_STAGING: ${{ secrets.ARTIFACTS_KEY_STAGING }}