|
5 | 5 | # Sequence of patterns matched against refs/tags |
6 | 6 | tags: |
7 | 7 | - '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 | + |
8 | 15 | jobs: |
9 | 16 | docs: |
10 | 17 | name: Build & Push Docs |
|
18 | 25 | defaults: |
19 | 26 | run: |
20 | 27 | shell: bash -l {0} |
| 28 | + |
21 | 29 | 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 |
30 | 35 | 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 | + |
44 | 39 | - name: Make Docs |
45 | 40 | run: cd docs; make html |
| 41 | + |
46 | 42 | - name: Commit Docs |
47 | 43 | run: | |
48 | 44 | git clone https://github.com/ammaraskar/sphinx-action-test.git --branch gh-pages --single-branch gh-pages |
|
54 | 50 | git commit -m "Update documentation" -a || true |
55 | 51 | # The above command will fail if no changes were present, |
56 | 52 | # 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 |
58 | 56 | with: |
59 | 57 | branch: gh-pages |
60 | 58 | directory: gh-pages |
|
0 commit comments