-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (41 loc) · 1.01 KB
/
docker.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
40
41
42
43
44
45
46
47
# Auto-generated by Cimas: Do not edit it manually!
# See https://github.com/metanorma/cimas
name: docker
on:
push:
branches: [ main ]
pull_request:
workflow_dispatch:
permissions:
pull-requests: write
contents: write
pages: write
id-token: write
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
container:
image: metanorma/metanorma:latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Metanorma generate site
id: build-and-publish
uses: actions-mn/build-and-publish@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
agree-to-terms: true
destination: artifact
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
uses: actions-mn/deploy-pages@main
with:
token: ${{ secrets.GITHUB_TOKEN }}