Some checks failed
My Gatsby Deployment pipeline / build (push) Failing after 1m23s
48 lines
1.0 KiB
YAML
48 lines
1.0 KiB
YAML
name: My Gatsby Deployment pipeline
|
|
run-name: ${{ gitea.actor }} is deploying this page to production.
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Repository auschecken
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Node.js einrichten
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 18
|
|
|
|
- name: Install Dependencies
|
|
run: |
|
|
npm install --legacy-peer-deps
|
|
npm install -g gatsby-cli
|
|
|
|
- name: Clean Gatsby cache
|
|
run: gatsby clean
|
|
|
|
- name: Build Gatsby Site
|
|
run: |
|
|
npm run build
|
|
env:
|
|
NODE_ENV: production
|
|
CI: true
|
|
|
|
- name: Check build output
|
|
run: |
|
|
if [ ! -d "public" ]; then
|
|
echo "Build failed - public directory not found"
|
|
exit 1
|
|
fi
|
|
|
|
- name: Upload build artifacts
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: gatsby-build
|
|
path: public/
|