This repository has been archived by the owner on Feb 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
73 lines (57 loc) · 1.52 KB
/
ci.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: CI
on:
push:
branches:
- 'main'
pull_request:
branches:
- 'main'
jobs:
lint-terraform:
runs-on: ubuntu-latest
container:
image: "ghcr.io/azure/eu-digital-covid-certificates-reference-architecture/devcontainer:latest"
options: --user 1001
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Lint Terraform
run: |
terraform fmt -check -recursive
build-docs:
runs-on: ubuntu-latest
container:
image: "ghcr.io/azure/eu-digital-covid-certificates-reference-architecture/devcontainer:latest"
options: --user 1001
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Build Docs
run: |
cd docs && make
- name: Upload docs artifacts
uses: actions/upload-artifact@v2
with:
name: docs
path: |
docs/public/
publish-docs:
runs-on: ubuntu-latest
needs: build-docs
if: ${{ github.event_name == 'push' }}
steps:
- name: Download docs artifacts
uses: actions/download-artifact@v2
with:
name: docs
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./