Update GitHub Actions workflow for deployment

This commit is contained in:
Felipe Santana Soares Silva 2025-10-23 19:17:27 -03:00 committed by GitHub
parent 5e7d9e6656
commit 1acb33cbe2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,12 +1,15 @@
name: Deploy Quartz to GitHub Pages name: Deploy Quartz to GitHub Pages
on: on:
push: push:
branches: [ "v4" ] branches: [ "v4" ] # troque para "main" se esse for seu branch padrão
workflow_dispatch: workflow_dispatch:
permissions: permissions:
contents: read contents: read
pages: write pages: write
id-token: write id-token: write
concurrency: concurrency:
group: "pages" group: "pages"
cancel-in-progress: true cancel-in-progress: true
@ -15,17 +18,20 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v5
with: with:
fetch-depth: 0 fetch-depth: 0
- uses: actions/setup-node@v4 - name: Configure GitHub Pages (opcional)
uses: actions/configure-pages@v5
- uses: actions/setup-node@v6
with: with:
node-version: 22 node-version: 22
- run: npm ci - run: npm ci
- run: npx quartz build - run: npx quartz build
- uses: actions/upload-pages-artifact@v3 - uses: actions/upload-pages-artifact@v4
with: with:
path: public path: public
deploy: deploy:
needs: build needs: build
runs-on: ubuntu-latest runs-on: ubuntu-latest