Merge pull request #342 from usnistgov/develop #213
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Site | |
# on: [push, pull_request] | |
on: | |
push: | |
branches: | |
- main | |
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@v3 | |
- uses: conda-incubator/setup-miniconda@v3 | |
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 | |
pip install pymatgen | |
git config user.name "github-actions[bot]" | |
git config user.email "[email protected]" | |
python jarvis_leaderboard/rebuild.py | |
python jarvis_leaderboard/specialized_benchmarks.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 | |
# name: Deploy Site | |
# #on: [push, pull_request] | |
# on: | |
# push: | |
# branches: | |
# - main | |
# permissions: | |
# contents: write | |
# jobs: | |
# build: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v3 | |
# - name: Set up Python "3.10" | |
# uses: actions/setup-python@v4 | |
# with: | |
# python-version: "3.10" | |
# - name: Install dependencies | |
# run: | | |
# python -m pip install --upgrade pip setuptools | |
# python setup.py develop | |
# #python -m pip install -r requirements.txt | |
# pip install pymatgen | |
# - name: Deploy Files | |
# run: | | |
# 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 |