Skip to content

Merge pull request #23 from LucasSteer/dependabot/npm_and_yarn/vite-3… #13

Merge pull request #23 from LucasSteer/dependabot/npm_and_yarn/vite-3…

Merge pull request #23 from LucasSteer/dependabot/npm_and_yarn/vite-3… #13

# Generate static site and deploy to GitHub Pages
name: build-and-deploy
on:
push:
branches: ['main']
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Generate build files using Nuxt.js
run: |
npm ci
npm run generate
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./dist
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1