generated from ansys/template
-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (39 loc) · 1.24 KB
/
nightly-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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Nightly Documentation Build
on:
schedule: # UTC at 0400 - 12am EDT
- cron: '0 4 * * *'
workflow_dispatch:
env:
DOCUMENTATION_CNAME: 'ensight.docs.pyansys.com'
ENSIGHT_IMAGE: 'ghcr.io/ansys-internal/ensight_dev'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
docs_build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Login in Github Container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ansys-bot
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker pull
run: docker pull ${{ env.ENSIGHT_IMAGE }}
- name: Run Ansys documentation building action
uses: ansys/actions/doc-build@v4
env:
ANSYSLMD_LICENSE_FILE: ${{ format('1055@{0}', secrets.LICENSE_SERVER) }}
with:
sphinxopts: '-j auto'
docs_upload:
needs: docs_build
runs-on: ubuntu-latest
steps:
- name: Deploy development documentation
uses: ansys/actions/doc-deploy-dev@v4
with:
cname: ${{ env.DOCUMENTATION_CNAME }}
token: ${{ secrets.GITHUB_TOKEN }}