-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (43 loc) · 1.16 KB
/
main.yaml
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
on:
push:
branches:
- master
pull_request:
branches:
- master
permissions:
contents: write
name: Run python
jobs:
build_site:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: setup-conda
uses: s-weigand/setup-conda@v1.1.1
- name: Install package
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install .
- name: Install cartopy
run: |
conda install -c conda-forge cartopy
- name: Make folder
run: |
mkdir public
- name: Generate html site
run: |
python make.py
- name: Copy over necessary files
run: |
cp jquery-3.7.1.slim.min.js public/jquery-3.7.1.slim.min.js
cp style.css public/style.css
cp toggle.js public/toggle.js
cp -r pictures/. public/
- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v3
with:
target_branch: gh-pages
build_dir: public
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}