Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

refactor: unneeded complexity #73

refactor: unneeded complexity

refactor: unneeded complexity #73

Workflow file for this run

on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- uses: pnpm/action-setup@v2.4.0
with:
version: 8.10.2
run_install: true
- name: Build Project
run: pnpm build
- name: Copy index.html to 404.html
run: cp dist/index.html dist/404.html # needed because of dynamic routes
- name: Upload Artifacts
uses: actions/upload-pages-artifact@v2
with:
path: dist/
deploy:
needs: build
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2