-
Notifications
You must be signed in to change notification settings - Fork 45
37 lines (35 loc) · 1.06 KB
/
publish.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
name: Publish runbooks
on:
workflow_dispatch:
push:
branches:
- "main"
jobs:
build:
runs-on: ubuntu-latest
container:
image: ministryofjustice/tech-docs-github-pages-publisher:v2
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Compile Markdown to HTML and create artifact
run: |
cd runbooks; /scripts/compile-and-create-artifact.sh
- name: Install rsync
run: |
apk update && apk add rsync
which rsync
- name: Deploy
uses: JamesIves/[email protected]
with:
token: ${{ secrets.PUBLISHING_GIT_TOKEN }}
git-config-name: cloud-platform-moj
git-config-email: [email protected]
repository-name: ministryofjustice/cloud-platform-runbooks
branch: gh-pages # The branch the action should deploy to.
folder: runbooks/docs # The folder the action should deploy.
clean: true
clean-exclude: |
CNAME
License
README.md