Skip to content

Merge branch 'master' of https://github.com/GabrielReverso/portfolio #6

Merge branch 'master' of https://github.com/GabrielReverso/portfolio

Merge branch 'master' of https://github.com/GabrielReverso/portfolio #6

Workflow file for this run

name: publish-to-github-pages
on:
push:
branches:
- master
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Setup Node.js ⚙️ - Cache dependencies ⚡ - Install dependencies 🔧
uses: ./.github/workflows/setup-node
- name: Setup Pages ⚙️
uses: actions/configure-pages@v4
with:
static_site_generator: next
- name: Build with Next.js 🏗️
run: npx next build
- name: Upload artifact 📡
uses: actions/upload-pages-artifact@v3
with:
google-cloud-storage: ${{ secrets.GCS_BUCKET }}
artifact-name: ${{ env.ARTIFACT_NAME }}
artifact-path: ./out
token: ${{ secrets.GITHUB_TOKEN }}
- name: Deploy to GitHub Pages 🚀
uses: actions/deploy-pages@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
publish-dir: ./out