From 5655dd09d4e7141a88799c6dce5dd233bea57b81 Mon Sep 17 00:00:00 2001 From: Kamal Choudhary Date: Wed, 20 Mar 2024 09:39:11 -0400 Subject: [PATCH] Update deploy_nist_pages.yml --- .github/workflows/deploy_nist_pages.yml | 80 ++++++++++++++----------- 1 file changed, 44 insertions(+), 36 deletions(-) diff --git a/.github/workflows/deploy_nist_pages.yml b/.github/workflows/deploy_nist_pages.yml index 0a4e5fc3..c15488a9 100644 --- a/.github/workflows/deploy_nist_pages.yml +++ b/.github/workflows/deploy_nist_pages.yml @@ -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.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 - - - name: Deploy Files - run: | - git config user.name "github-actions[bot]" - git config user.email "actions@github.com" - # 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 "actions@github.com" + # 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