Skip to content

Commit

Permalink
Add build workflow and update scrape workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jgarber623 committed Jun 5, 2023
1 parent 8c34d98 commit 99bf3e5
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build

on:
push:
workflow_call:
workflow_dispatch:

jobs:
build:
name: Build and publish to GitHub Pages
permissions:
id-token: write
pages: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
- uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: npm
- run: npm ci
- run: npm run build
- uses: actions/upload-pages-artifact@v1
- uses: actions/deploy-pages@v2
7 changes: 7 additions & 0 deletions .github/workflows/scrape.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,10 @@ jobs:
git add -A
git commit -m "🤖 Automated update (`date +%FT%T%z`)" || exit 0
git push
build:
name: Build
permissions:
id-token: write
pages: write
needs: scrape
uses: ./.github/workflows/build.yml

0 comments on commit 99bf3e5

Please sign in to comment.