Skip to content

Merge pull request #86 from MfN-Berlin/testing-drupal-integration #116

Merge pull request #86 from MfN-Berlin/testing-drupal-integration

Merge pull request #86 from MfN-Berlin/testing-drupal-integration #116

Workflow file for this run

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Specify exact Node version to match local
- uses: actions/setup-node@v3
with:
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/
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
contents: read
pages: write
id-token: write
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4