Work on the github pages workflow

This commit is contained in:
Carter McBride 2024-06-18 22:30:03 -06:00
parent 56b8cef868
commit c281566eff

View file

@ -4,10 +4,9 @@
name: Build feed name: Build feed
on: on:
push: workflow_dispatch:
branches: [ "main" ] schedule:
pull_request: - cron: "0 */6 * * *" # At minute 0 past every 6th hour.
branches: [ "main" ]
jobs: jobs:
build: build:
@ -20,16 +19,17 @@ jobs:
bun-version: latest bun-version: latest
- run: bun install --frozen-lockfile - run: bun install --frozen-lockfile
- run: bun run build - run: bun run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: public/
deploy: deploy:
needs: build
permissions:
pages: write
id-token: write
environment: environment:
name: github-pages name: github-pages
url: ${{ steps.deployment.outputs.page_url }} url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build
steps: steps:
- name: Deploy to Github Pages - name: Deploy to GitHub Pages
id: deployment id: deployment
uses: actions/deploy-pages@v4 uses: actions/deploy-pages@v4