From 0715848059130ed8e94745763a93b03c404ed739 Mon Sep 17 00:00:00 2001 From: valentina Date: Mon, 8 Jul 2024 11:52:25 -0700 Subject: [PATCH 1/2] changing name of create_website --- .github/workflows/create_website.yml | 60 ---------------------------- 1 file changed, 60 deletions(-) delete mode 100644 .github/workflows/create_website.yml diff --git a/.github/workflows/create_website.yml b/.github/workflows/create_website.yml deleted file mode 100644 index 194a3b9..0000000 --- a/.github/workflows/create_website.yml +++ /dev/null @@ -1,60 +0,0 @@ -name: Deploy Website to GitHub Pages - -on: - # Runs on pushes targeting the default branch -# push: -# branches: ["main"] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages -permissions: - pages: write - id-token: write - -jobs: - # Build Website - build: - runs-on: ubuntu-latest - defaults: - run: - shell: bash -l {0} - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Install Conda environment with Micromamba - uses: mamba-org/setup-micromamba@v1 - with: - environment-file: website_figure/environment.yml - cache-environment: true - - - name: Build Website - shell: bash -el {0} - run: | - cd website_figure - jupyter nbconvert myfigure.ipynb --execute --to html --output-dir=_build/html - - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 - with: - path: website_figure/_build/html - - - # Publish Website to GitHub Pages if built successfully - deploy: - needs: build - if: github.ref == 'refs/heads/main' - runs-on: ubuntu-latest - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - - steps: - - name: Setup Pages - uses: actions/configure-pages@v5 - - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 From 72cdad387adcd40c257a774a8a8743eb89d5aa25 Mon Sep 17 00:00:00 2001 From: valentina Date: Mon, 8 Jul 2024 12:17:35 -0700 Subject: [PATCH 2/2] myfigure --- .github/workflows/create_website_myfigure.yml | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 .github/workflows/create_website_myfigure.yml diff --git a/.github/workflows/create_website_myfigure.yml b/.github/workflows/create_website_myfigure.yml new file mode 100644 index 0000000..194a3b9 --- /dev/null +++ b/.github/workflows/create_website_myfigure.yml @@ -0,0 +1,60 @@ +name: Deploy Website to GitHub Pages + +on: + # Runs on pushes targeting the default branch +# push: +# branches: ["main"] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + pages: write + id-token: write + +jobs: + # Build Website + build: + runs-on: ubuntu-latest + defaults: + run: + shell: bash -l {0} + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install Conda environment with Micromamba + uses: mamba-org/setup-micromamba@v1 + with: + environment-file: website_figure/environment.yml + cache-environment: true + + - name: Build Website + shell: bash -el {0} + run: | + cd website_figure + jupyter nbconvert myfigure.ipynb --execute --to html --output-dir=_build/html + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: website_figure/_build/html + + + # Publish Website to GitHub Pages if built successfully + deploy: + needs: build + if: github.ref == 'refs/heads/main' + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + steps: + - name: Setup Pages + uses: actions/configure-pages@v5 + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4