Skip to content

Add new paper and project #8

Add new paper and project

Add new paper and project #8

name: Deploy live website
on:
push:
branches:
- 'master'
permissions:
contents: read
pages: write
id-token: write
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js 22.x
uses: actions/setup-node@v3
with:
node-version: 22.x
- name: Cache dependencies
id: cache_dependencies
uses: actions/cache@v3
with:
path: node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}
- name: Install dependencies
shell: bash
if: steps.cache_dependencies.outputs.cache-hit != 'true'
run: npm ci
- name: Setup Pages
uses: actions/configure-pages@v5
with:
static_site_generator: next
- name: Build
run: npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./out
- name: Publish to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4