Skip to content

Commit

Permalink
Attempt sw build
Browse files Browse the repository at this point in the history
  • Loading branch information
benfoxall committed May 15, 2024
1 parent bca0455 commit 29d071e
Show file tree
Hide file tree
Showing 3 changed files with 6,618 additions and 534 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Deploy to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

workflow_run:
workflows: ["Scrape Website"]
types:
- completed

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"

- name: Install dependencies
run: npm ci

- name: Build site
run: npm run build

- name: rm deps
run: rm -rf node_modules

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: .

# Deployment job
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
Loading

0 comments on commit 29d071e

Please sign in to comment.