From 663d45ea3c53b58fbadecdfdd1cc6dcb4e587d04 Mon Sep 17 00:00:00 2001 From: George Vega Yon Date: Mon, 19 Aug 2024 16:50:32 -0600 Subject: [PATCH] Checking out artifact --- .github/workflows/website.yml | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index 3ca259b..7293a67 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -3,28 +3,25 @@ name: Render website on: [push, pull_request] jobs: - quarto-ubuntu: + upload: runs-on: Ubuntu-latest container: ghcr.io/uofuepibio/phs7045-advanced-programming:fall2024 steps: - uses: actions/checkout@v4 - - name: Render + - name: index run: | - make -B README.md + quarto render README.qmd --to=html + mv README.html index.html - - name: Commit results - run: | - git config --global user.name "github-actions[bot]" - git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" - git config --global --add safe.directory "$GITHUB_WORKSPACE" - git add docs/* || echo Nothing to be added - git commit -a -m 'Re-build examples' || echo Nothing has changed - git push origin || echo "No changes to commit" + - uses: actions/upload-pages-artifact@v3 + with: + path: "./" website: if: ${{ github.event_name != 'pull_request' }} + needs: upload runs-on: ubuntu-latest permissions: pages: write @@ -37,10 +34,6 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: actions/upload-pages-artifact@v3 - with: - path: "./" - - name: Deploy to GitHub pages uses: actions/deploy-pages@v4