-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (61 loc) · 1.98 KB
/
pre-release.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
on:
push:
branches:
- main
workflow_dispatch: {}
jobs:
package:
name: "Make a pre-release"
runs-on: "ubuntu-latest"
permissions: write-all
steps:
- name: "Checkout repository"
uses: actions/checkout@v4
with:
path: schema
- uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
- run: |
pip install -r schema/requirements.txt
mkdir release doc_temp doc_out
- name: "Package schema"
uses: docker://ghcr.io/riverbench/ci-worker:main
with:
args: ci-worker package-schema dev schema release doc_temp
- name: "Generate docs with PyLODE"
run: |
python -m pylode.cli -i doc_temp/metadata.ttl -c false -o doc_temp/metadata.md -f md
python -m pylode.cli -i doc_temp/documentation.ttl -c false -o doc_temp/documentation.md -f md
- name: "Post-process the docs"
uses: docker://ghcr.io/riverbench/ci-worker:main
with:
args: ci-worker schema-doc-gen dev doc_temp doc_out
- name: "Package docs"
run: tar -czf release/docs.tar.gz -C doc_out .
- name: Upload files for the release
uses: ncipollo/[email protected]
with:
allowUpdates: true
prerelease: true
draft: false
omitDraftDuringUpdate: false
makeLatest: false
tag: "dev"
name: "Development pre-release"
artifacts: 'release/*'
removeArtifacts: true
generateReleaseNotes: true
trigger-doc-update:
needs: package
name: "Trigger documentation update"
runs-on: "ubuntu-latest"
steps:
- name: "Trigger repository_dispatch"
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.PAT_DOC_REPO_HOOKS }}
repository: RiverBench/riverbench.github.io
event-type: schema-doc-update
client-payload: '{ "tag": "dev" }'