1
0
mirror of https://github.com/GenderDysphoria/GenderDysphoria.fyi.git synced 2025-11-26 04:52:43 +00:00

use markdown-it-footnote | fix lint | fix Actions

This commit is contained in:
zhdbk3
2025-08-13 16:45:33 +08:00
parent 7d17e157f3
commit f896ddf7b9
6 changed files with 16 additions and 9 deletions

View File

@@ -7,7 +7,7 @@ jobs:
build-site:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v5
- name: Install GraphicsMagick
run: sudo apt install graphicsmagick
@@ -18,13 +18,13 @@ jobs:
sudo apt install ./google-chrome-stable_current_amd64.deb
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: '14'
cache: 'npm'
- name: Restore node_modules cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package-lock.json') }}
@@ -32,7 +32,7 @@ jobs:
${{ runner.os }}-node_modules
- name: Restore Asset Cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
key: if-cache
path: |
@@ -49,6 +49,11 @@ jobs:
- name: Build site
run: npm run build
- name: Spawn HTTP server
uses: Eun/http-server-action@v1
with:
directory: dist
- name: (EN) Generate PDF from HTML
run: |
google-chrome --headless --print-to-pdf-no-header \
@@ -101,7 +106,7 @@ jobs:
run: ls -la ${{ github.workspace }}/dist
- name: Upload PDFs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: site-pdfs
path: |