-
-
Notifications
You must be signed in to change notification settings - Fork 274
63 lines (57 loc) · 1.95 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: deploy
on:
push:
branches:
- main
pull_request: null
workflow_dispatch: null
jobs:
tests:
name: deploy
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
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 }}
GHREPO: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
- name: deploy
if: github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch')
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./build
user_name: conda-forge-admin
user_email: pelson.pub+conda-forge@gmail.com
- name: Link Checker
uses: lycheeverse/lychee-action@2b973e86fc7b1f6b36a93795fe2c9c6ae1118621 # for v1.10.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
lycheeVersion: "0.14.3"
args: >
--no-progress
--base "$(pwd)/build"
--accept 100..399,401,403,429
--exclude 'https://polys.me/?$'
--exclude 'https://conda-metadata-app.streamlit.app/?$'
--exclude 'https://kb43fqob7u-dsn.algolia.net/'
--exclude '.*/404.html/'
--exclude '.*,.*'
--exclude-path './build/community/minutes/'
--remap "https://conda-forge.org/(.*) file://$(pwd)/build/\$1"
'./build/**/*.html'
'*.md'