-
-
Notifications
You must be signed in to change notification settings - Fork 274
43 lines (38 loc) · 1.12 KB
/
deploy.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
name: deploy
on:
push:
branches:
- main
pull_request: null
workflow_dispatch: null
jobs:
tests:
name: deploy
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: 3.8
channels: conda-forge
channel-priority: strict
show-channel-urls: true
miniforge-version: latest
miniforge-variant: Mambaforge
activate-environment: conda-forge-docs
environment-file: .ci_scripts/environment.yml
- name: build
shell: bash -l {0}
run: |
source ./.ci_scripts/update_docs
env:
GHREF: ${{ github.ref }}
- name: deploy
if: github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch')
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: .
user_name: conda-forge-admin
user_email: [email protected]