Skip to content

build: update workflow deno version #2

build: update workflow deno version

build: update workflow deno version #2

name: NPM - Deploy Astro to GitHub Pages with
on:
push:
branches: ["main"]
paths:
- src/**
- astro.config.mjs
- deno.json
- deno.lock
- public/**
- .github/workflow/**
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup repo
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Run install
run: npm install
- name: Run Build
run: npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
name: github-pages
path: "./dist/"
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4