-
Notifications
You must be signed in to change notification settings - Fork 28
31 lines (30 loc) · 1.02 KB
/
main.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
name: Test MkDocs on GH action
on:
push:
branches:
- master
jobs:
conda-mkdocs:
name: MkDocs
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/[email protected]
with:
activate-environment: foo
python-version: 3.7
channels: conda-forge
allow-softlinks: true
channel-priority: flexible
show-channel-urls: true
use-only-tar-bz2: true
- name: Install conda and build docs
shell: bash -l {0}
run: |
conda info
conda install -c conda-forge mkdocs mkdocs-markdownextradata-plugin
git config --global user.name "${GITHUB_ACTOR}"
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git remote rm origin
git remote add origin "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git"
mkdocs gh-deploy --config-file "${GITHUB_WORKSPACE}/mkdocs.yml" --force