-
Notifications
You must be signed in to change notification settings - Fork 44
59 lines (49 loc) · 1.62 KB
/
build.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
name: Build webpage
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
on:
pull_request:
push:
tags:
- "*"
branches:
- master
jobs:
build-pages:
if: github.event_name == 'pull_request' || github.repository == 'hsf-training/analysis-essentials'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
mamba-version: "*"
channels: conda-forge,defaults
python-version: 3.11
environment-file: environment.yml
activate-environment: analysis-essentials
- name: Install starterkit-ci
shell: bash -l {0}
run: |
# pip install "starterkit-ci>=0.0.12"
pip install git+https://github.com/lhcb/starterkit-ci.git@cburr-gh-actions
- name: Build webpage
shell: bash -l {0}
run: |
starterkit_ci build
# If debugging, the following can be used to make things much faster:
# rm -rf advanced-python/
# starterkit_ci build --allow-warnings
# - name: Check webpage
# shell: bash -l {0}
# run: |
# starterkit_ci check
- name: Deploy webpage
if: github.event_name == 'push' && github.repository == 'hsf-training/analysis-essentials' && github.ref == 'refs/heads/master'
shell: bash -l {0}
run: |
export TRAVIS_BRANCH=${GITHUB_REF#refs/heads/}
export TRAVIS_REPO_SLUG=${{ github.repository }}
export INPUT_GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
starterkit_ci deploy