-
Notifications
You must be signed in to change notification settings - Fork 125
83 lines (76 loc) · 2.13 KB
/
deploy_nist_pages.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#
# This is a working example of using GitHub Actions to publish the docs
# to the GitHub Pages (gh_pages) branch.
#
# Remember to have a requirements.txt file with the required dependencies.
# This template ships with one by default.
#
# It is also recommendet to also copy the template with all branches, to
# have the gh-pages branch pre-made. This prevents possible errors.
#
name: Deploy Site
# on: [push, pull_request]
on:
push:
branches:
- master
permissions:
contents: write
# on:
# push:
# paths:
# - 'docs/**'
# - 'mkdocs.yml'
# - 'theme/**'
# branches:
# - master
# #
# # If your repository would have releases should you uncomment the below lines
# # in order to ignore pushes caused by newly created releases.
# #
# #tags-ignore:
# #- '**'
jobs:
miniconda:
name: Miniconda ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest"]
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: test
environment-file: environment.yml
python-version: "3.10"
auto-activate-base: false
- shell: bash -l {0}
run: |
conda info
conda list
- name: Deploy Files
shell: bash -l {0}
run: |
python -m pip install --upgrade pip setuptools
python setup.py develop
git config user.name "github-actions[bot]"
git config user.email "[email protected]"
# python jarvis_leaderboard/rebuild.py
mkdocs build
#rm -r /tmp/site
cp -r site /tmp
git fetch
git checkout nist-pages --force
rm -r *
cp -r /tmp/site/* .
echo 'listing'
ls
echo 'listing tmp'
ls /tmp
git add * */*
git commit -m 'Adding files.'
git push origin nist-pages -f
#git commit -a -m "Move"
#git push -f origin nist-pages1
#mkdocs gh-deploy