Skip to content

Commit

Permalink
github pages actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dmlb committed Aug 9, 2024
1 parent 6cb2c2c commit 2a4a72a
Showing 1 changed file with 26 additions and 5 deletions.
31 changes: 26 additions & 5 deletions .github/workflows/gh-pages-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages
# Simple workflow for deploying to GitHub Pages
name: Deploy to GitHub Pages

on:
# Runs on pushes targeting the default branch
Expand Down Expand Up @@ -31,11 +31,32 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Restore cache
uses: actions/cache@v4
with:
path: deploy
key: ${{ runner.os }}-deploy

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

- name: Setup Pages
uses: actions/configure-pages@v5

- name: Install and Build 🔧
run: |
npm ci
npm run build:ghpages
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
folder: dist/covid-care
# build folder
path: dist/covid-care

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 2a4a72a

Please sign in to comment.