Skip to content

Build & deploy to GitHub Pages #4

Build & deploy to GitHub Pages

Build & deploy to GitHub Pages #4

Workflow file for this run

name: Build & deploy to GitHub Pages
on:
push:
tags:
- "*"
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
# 1 concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Install pre-requirements
run: yarn install --immutable
- name: Build
run: yarn build
env:
POCKETBASE_URL: ${{ secrets.POCKETBASE_URL }}
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'dist/'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4