From c281566eff495a144ed76da73c374ac4fa7ed3b8 Mon Sep 17 00:00:00 2001 From: Carter McBride <18412686+carterworks@users.noreply.github.com> Date: Tue, 18 Jun 2024 22:30:03 -0600 Subject: [PATCH] Work on the github pages workflow --- .github/workflows/build.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cc7b089..c4d6a23 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,10 +4,9 @@ name: Build feed on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] + workflow_dispatch: + schedule: + - cron: "0 */6 * * *" # At minute 0 past every 6th hour. jobs: build: @@ -20,16 +19,17 @@ jobs: bun-version: latest - run: bun install --frozen-lockfile - run: bun run build + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: public/ deploy: - needs: build - permissions: - pages: write - id-token: write environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest + needs: build steps: - - name: Deploy to Github Pages + - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4