forked from tier4/AWSIM
-
Notifications
You must be signed in to change notification settings - Fork 15
38 lines (35 loc) · 1.13 KB
/
documentation_generation.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
name: documentation_generation
on:
push:
branches:
- main
pull_request_target:
types:
- opened
- synchronize
- labeled
workflow_dispatch:
jobs:
prevent-no-label-execution:
uses: autowarefoundation/autoware-github-actions/.github/workflows/prevent-no-label-execution.yaml@v1
with:
label: tag:deploy-docs
deploy-docs:
needs: prevent-no-label-execution
if: ${{ needs.prevent-no-label-execution.outputs.run == 'true' }}
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v3
- name: Check out repository
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: Deploy docs
uses: autowarefoundation/autoware-github-actions/deploy-docs@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
latest: ${{ github.event_name != 'pull_request_target' && github.ref_name == github.event.repository.default_branch }}
mkdocs-requirements-txt: mkdocs-requirements.txt
- name: Set main branch as default
run: mike set-default main --push