Skip to content

Commit

Permalink
modified workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tmoroney committed Oct 5, 2024
1 parent 005e401 commit b7938e2
Showing 1 changed file with 13 additions and 16 deletions.
29 changes: 13 additions & 16 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: publish-to-github-pages
on:
push:
branches:
- website-dev
- master

permissions:
contents: read
Expand All @@ -19,27 +19,24 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Checkout 🛎️
uses: actions/checkout@v4

- name: Setup Node.js ⚙️
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependencies 🔧
run: npm install
- name: Setup Node.js ⚙️ - Cache dependencies ⚡ - Install dependencies 🔧
uses: ./.github/workflows/setup-node

- name: Build Next.js app
run: npm run build
- name: Setup Pages ⚙️
uses: actions/configure-pages@v4
with:
static_site_generator: next

- name: Export Next.js app
run: npm run export
- name: Build with Next.js 🏗️
run: npx next build

- name: Upload artifact for GitHub Pages
- name: Upload artifact 📡
uses: actions/upload-pages-artifact@v3
with:
path: ./out # Make sure 'out' directory is created
path: ./out

deploy:
environment:
Expand Down

0 comments on commit b7938e2

Please sign in to comment.