forked from SORMAS-Foundation/SORMAS-Project
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 985 Bytes
/
github_pages.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
---
name: Publish GitHub Pages
on:
push:
branches:
- development
jobs:
build:
name: Deploy page
runs-on: ubuntu-latest
steps:
- name: Checkout development
uses: actions/checkout@v1
- name: Copy files
run: |
cp README.md docs/index.md
# remove wrong path prefix
sed -i -e 's/docs\///g' docs/index.md
mkdir docs/sormas-rest/
cp sormas-rest/README.md docs/sormas-rest/
mkdir docs/sormas-cargoserver/
cp sormas-cargoserver/README.md docs/sormas-cargoserver/
mkdir docs/sormas-keycloak-service-provider/
cp sormas-keycloak-service-provider/README.md docs/sormas-keycloak-service-provider/
mkdir -p docs/sormas-base/doc/
cp sormas-base/doc/keycloak.md docs/sormas-base/doc/
- name: Deploy docs
uses: mhausenblas/mkdocs-deploy-gh-pages@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}