Skip to content

Commit

Permalink
Set up github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
BenM-BenM committed Mar 7, 2024
1 parent bbbc0b9 commit 49bb06b
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 77 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/build.yml → .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,21 @@ on:

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

env:
PUBLIC_API_URL: https://script.google.com/macros/s/AKfycby7gxBa9LUJCAXw9W-gJ46T0JQIF_9q_fXL4lWpMAj8HgKhmBfCaeZFe9SS3TeaUbfhVQ/exec

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

# Allow one concurrent deployment
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: true
cancel-in-progress: false

jobs:
# Single deploy job since we're just deploying
Expand All @@ -30,19 +33,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm i
- run: npm run build
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v3
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: 'build'
path: '.'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v4
128 changes: 64 additions & 64 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 49bb06b

Please sign in to comment.