-
Notifications
You must be signed in to change notification settings - Fork 162
42 lines (42 loc) · 1.12 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
32
33
34
35
36
37
38
39
40
41
42
name: GitHub CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
osx:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Build
run: bash tools/gha_osx.sh
windows-2019:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: 3.8
channels: conda-forge
channel-priority: strict
- name: Build
run: .\tools\gha_windows-2019.ps1
shell: powershell
build-and-deploydocs:
if: ${{ github.event_name }} == 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install and Build 🔧
run: bash tools/gha_deploydocs.sh
- name: Upload to github pages 🚀
if: ${{ github.event_name == 'push' }}
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: doc/sphinx/_build/html # The folder the action should deploy.