Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
maxlisewski committed Nov 4, 2024
2 parents 54ab293 + d16c31c commit 9e1f3de
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,36 @@ on:
- 'v[0-9]+.[0-9]+.[0-9]+'

jobs:
# Build job
build:
# Specify runner + build & upload the static files as an artifact
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

# Specify exact Node version to match local
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Dependencies
run: npm install && npm run build --prefix-paths
node-version: '20.16.0'

# Install dependencies and Gatsby CLI globally
- name: Install Dependencies
run: |
npm install
npm install -g gatsby-cli
# Build with explicit prefix paths
- name: Build
run: |
gatsby build --prefix-paths
env:
PREFIX_PATHS: 'true'
NODE_ENV: 'production'

- name: Upload static files as artifact
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: public/

# Deployment job
deploy:
environment:
name: github-pages
Expand Down

0 comments on commit 9e1f3de

Please sign in to comment.