Skip to content

Commit

Permalink
Update deploy_nist_pages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
knc6 committed Mar 20, 2024
1 parent e2aebfc commit fff2bc5
Showing 1 changed file with 44 additions and 36 deletions.
80 changes: 44 additions & 36 deletions .github/workflows/deploy_nist_pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,40 +36,48 @@ permissions:
# #- '**'

jobs:
build:
runs-on: ubuntu-latest
miniconda:
name: Miniconda ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest"]
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
python setup.py develop
#python -m pip install -r requirements.txt
- 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
- 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

0 comments on commit fff2bc5

Please sign in to comment.