-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (40 loc) · 1.19 KB
/
build.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
name: build
concurrency:
group: ci-on-${{ github.event_name }}-from-${{ github.ref_name }}
cancel-in-progress: true
on:
# run on pushes to certain branches
push:
branches:
- "main"
- "release/v[0-9][0-9].[0-9][0-9].[0-9][0-9]"
# run on pushes of any tags
tags:
- "*"
# run by clicking buttons in the GitHub Actions UI
workflow_dispatch:
inputs:
deploy-docs:
description: 'Update the docs site?'
required: true
type: boolean
jobs:
conda-python-build:
uses: ./.github/workflows/conda-python-build.yaml
with:
script: "ci/build_python.sh"
secrets: inherit
upload-conda:
needs:
- conda-python-build
uses: ./.github/workflows/conda-upload-packages.yaml
secrets: inherit
docs-build:
needs:
- conda-python-build
uses: ./.github/workflows/docs-build.yaml
with:
script: "ci/build_docs.sh"
# only deploy docs on tag pushes or when someone manually runs the workflow with "update docs" selected
deploy: ${{ (github.event_name == 'push' && startsWith(github.ref, 'refs/tags')) || (github.event_name == 'workflow_dispatch' && inputs.deploy-docs == true) }}
secrets: inherit