Skip to content

ci: update github actions workflow #52

ci: update github actions workflow

ci: update github actions workflow #52

Workflow file for this run

name: Deploy Nuxt site to Pages
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
runs-on: "ubuntu-latest"
steps:
- name: Checkout πŸ›Ž
uses: actions/checkout@v4
- name: Setup node env πŸ—
uses: actions/setup-node@v4
with:
node-version: 19
cache: yarn
- name: Install dependencies πŸ‘¨πŸ»β€πŸ’»
run: yarn
- name: Generate Nuxt
run: yarn generate
env:
BASE_PATH: "/bangkok-budgeting-v3"
NOCO_TOKEN: ${{ secrets.NOCO_TOKEN }}
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
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@v4