Skip to content

it's 2025 now

it's 2025 now #31

Workflow file for this run

name: PageBuild
on:
push:
branches:
- main
jobs:
pages:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
contents: write
pages: write
deployments: write
id-token: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '0'
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: "16"
- name: Cache NPM dependencies
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.OS }}-npm-cache
restore-keys: |
${{ runner.OS }}-npm-cache
- name: Cache Puppeteer
uses: actions/cache@v3
with:
path: ~/.cache/puppeteer
key: ${{ runner.OS }}-puppeteer-cache
restore-keys: |
${{ runner.OS }}-puppeteer-cache
- name: Install Dependencies
run: npm install
- name: Copy comments
uses: actions/checkout@v3
with:
ref: comments
path: public/comments
- name: Build
run: npm run build
- name: Update comments
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public/comments/
publish_branch: comments
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: public
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2