Skip to content

[esa] Update post.

[esa] Update post. #45

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: release
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
img:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- uses: technote-space/get-diff-action@v6
with:
PATTERNS: src/contents/**/*.md
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 10
run_install: false
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Run Download
env:
COMMIT_ID: ${{ github.sha }}
run: |
pnpm download
pnpm convert
build:
needs: img
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install, build, and upload this site
uses: withastro/action@v2
with:
node-version: 20
package-manager: pnpm@latest
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4