From 7eb875a593c2309a6542c4c7135ba85be3d4407f Mon Sep 17 00:00:00 2001 From: powe97 <116031952+powe97@users.noreply.github.com> Date: Fri, 10 Feb 2023 00:33:40 -0500 Subject: [PATCH] Attempt at merging actions --- .github/workflows/scraper.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/.github/workflows/scraper.yml b/.github/workflows/scraper.yml index 361ab6f..4b40159 100644 --- a/.github/workflows/scraper.yml +++ b/.github/workflows/scraper.yml @@ -118,3 +118,35 @@ jobs: git add courses git commit -m "$(date)" || exit 0 git push + + deploy-static-site: + name: Deploy static site to Github Pages + runs-on: ubuntu-latest + needs: [generate-site] + permissions: + pages: write + id-token: write + concurrency: + group: "pages" + cancel-in-progress: true + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - name: Checkout static-generated branch + uses: actions/checkout@v3 + with: + repository: quatalog/site + ref: static-generated + + - name: Setup Pages + uses: actions/configure-pages@v3 + + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 + with: + path: '.' + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v1