Skip to content

Commit d47143d

Browse files
committed
add manual trigger to doc build action
1 parent 8c3b5aa commit d47143d

File tree

1 file changed

+20
-22
lines changed

1 file changed

+20
-22
lines changed

.github/workflows/build_docs.yml

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55
# Sequence of patterns matched against refs/tags
66
tags:
77
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
8+
workflow_dispatch:
9+
inputs:
10+
version:
11+
description: Manual Doc Build Reason
12+
default: test
13+
required: false
14+
815
jobs:
916
docs:
1017
name: Build & Push Docs
@@ -18,31 +25,20 @@
1825
defaults:
1926
run:
2027
shell: bash -l {0}
28+
2129
steps:
22-
- uses: actions/checkout@v2
23-
- uses: actions/cache@v2
24-
env:
25-
CACHE_NUMBER: 0
26-
with:
27-
path: ~/conda_pkgs_dir
28-
key: ${{ matrix.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles(matrix.environment-file) }}
29-
- uses: conda-incubator/setup-miniconda@v2
30+
- name: Checkout repo
31+
uses: actions/checkout@v2
32+
33+
- name: Setup micromamba
34+
uses: mamba-org/provision-with-micromamba@main
3035
with:
31-
miniconda-version: 'latest'
32-
mamba-version: '*'
33-
channels: conda-forge
34-
channel-priority: true
35-
auto-update-conda: false
36-
auto-activate-base: false
37-
environment-file: ${{ matrix.environment-file }}
38-
activate-environment: test
39-
use-only-tar-bz2: true
40-
- run: mamba info --all
41-
- run: mamba list
42-
- run: conda config --show-sources
43-
- run: conda config --show
36+
environment-file: ${{ matrix.environment-file }}
37+
micromamba-version: 'latest'
38+
4439
- name: Make Docs
4540
run: cd docs; make html
41+
4642
- name: Commit Docs
4743
run: |
4844
git clone https://github.com/ammaraskar/sphinx-action-test.git --branch gh-pages --single-branch gh-pages
@@ -54,7 +50,9 @@
5450
git commit -m "Update documentation" -a || true
5551
# The above command will fail if no changes were present,
5652
# so we ignore the return code.
57-
- uses: ad-m/github-push-action@master
53+
54+
- name: push to gh-pages
55+
uses: ad-m/github-push-action@master
5856
with:
5957
branch: gh-pages
6058
directory: gh-pages

0 commit comments

Comments
 (0)