forked from rjsf-team/react-jsonschema-form
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 909 Bytes
/
release-docs.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
name: Release Latest Documentation
on:
release:
types: [published]
workflow_dispatch:
jobs:
create-tag:
runs-on: ubuntu-latest
steps:
- name: Run find-and-replace to remove v
uses: mad9000/actions-find-and-replace-string@2
id: tag_without_v
with:
source: ${{ github.event.release.tag_name }}
find: 'v'
replace: ''
- uses: actions/checkout@v4
- uses: rickstaa/action-create-tag@v1
with:
tag: ${{ steps.tag_without_v.outputs.value }}
message: 'Tagged documentation release'
deploy_docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: main
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- run: pip install -r requirements.docs.txt
- run: mkdocs build --clean