-
Notifications
You must be signed in to change notification settings - Fork 13
78 lines (78 loc) · 2.61 KB
/
integration-run.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
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
74
75
76
77
78
name: Run integration tests with the official doc suite
on:
push:
branches:
- master
- develop
jobs:
build-base-container:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: antoniogamiz/documentable-testing
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
dockerfile: testing.Dockerfile
tags: "latest"
build-documentable-container:
needs: build-base-container
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: antoniogamiz/documentable-nightly
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
dockerfile: production.Dockerfile
buildargs: branch_name=develop
tags: "latest"
build-documentation:
needs: build-documentable-container
runs-on: ubuntu-latest
container: antoniogamiz/documentable-nightly
steps:
- uses: actions/checkout@master
- name: Generate docs
run: |
documentable setup -o
documentable start --topdir=docs -v -a --highlight --highlight-path="/highlights"
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH: gh-pages
FOLDER: html
SINGLE_COMMIT: true
CLEAN: true
COMMIT_MESSAGE: "[skip ci]"
build-official-doc:
needs: build-documentable-container
runs-on: ubuntu-latest
container: antoniogamiz/documentable-nightly
steps:
- uses: actions/checkout@master
with:
path: /home/raku
- name: Generate docs container
run: |
git clone --depth 1 -b master --single-branch https://github.com/Raku/doc.git
cd doc
documentable setup -o
rm documentable.json && rm type-graph.txt
wget https://raw.githubusercontent.com/Raku/doc/master/type-graph.txt
cp ../t/integration-config.json documentable.json
documentable start -a -v
- name: Deploy official doc set 🚀
uses: JamesIves/[email protected]
with:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH: gh-pages
FOLDER: doc/html
TARGET_FOLDER: integration-test
SINGLE_COMMIT: true
COMMIT_MESSAGE: "[skip ci]"