Skip to content

Merge pull request #6 from MfN-Berlin/fix-checkout-after-build #8

Merge pull request #6 from MfN-Berlin/fix-checkout-after-build

Merge pull request #6 from MfN-Berlin/fix-checkout-after-build #8

Workflow file for this run

on:
push:
tags:
- '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
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Dependencies
run: npm install && npm run build --prefix-paths
- name: Upload static files as artifact
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: public/
# Deployment job
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