Skip to content

Merge pull request #29 from NNPDF/dependabot/pip/package/certifi-2024… #64

Merge pull request #29 from NNPDF/dependabot/pip/package/certifi-2024…

Merge pull request #29 from NNPDF/dependabot/pip/package/certifi-2024… #64

Workflow file for this run

name: Deploy Next.js site to Pages
on:
push:
branches: ['main']
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: 'pages'
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 6.32.9
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build with Next.js
run: pnpm next build
- name: Static HTML export with Next.js
run: pnpm next export
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./out
# Deployment job
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