chore: update npm metadata #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Github Pages Site | |
on: | |
push: | |
branches: [ "main" ] | |
workflow_dispatch: | |
concurrency: | |
group: "github-pages" | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 19 | |
- name: Build Svelte Kit | |
run: | | |
npm i | |
npm run build | |
- uses: actions/upload-pages-artifact@v1.0.7 | |
with: | |
path: build/ | |
deploy: | |
runs-on: ubuntu-latest | |
needs: [ build ] | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: Deploy to Github Pages Site | |
uses: actions/deploy-pages@v1.2.3 | |
id: deployment |