mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-06-28 04:06:54 +00:00
Update deploy.yml
This commit is contained in:
parent
8fd9ebf3a4
commit
b6cf291501
11
.github/workflows/deploy.yml
vendored
11
.github/workflows/deploy.yml
vendored
@ -20,31 +20,38 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "20"
|
||||
cache: 'npm'
|
||||
cache-dependency-path: web/package-lock.json
|
||||
cache-dependency-path: '**/package-lock.json'
|
||||
|
||||
- name: Setup Pages
|
||||
uses: actions/configure-pages@v4
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
cd web
|
||||
npm ci
|
||||
npm ci --prefer-offline --no-audit
|
||||
|
||||
- name: Build with Next.js
|
||||
run: |
|
||||
cd web
|
||||
npm run build
|
||||
|
||||
- name: Static HTML export with Next.js
|
||||
run: |
|
||||
cd web
|
||||
npm run export
|
||||
|
||||
- name: Copy guides and changelog
|
||||
run: |
|
||||
mkdir -p web/out/guides
|
||||
cp guides/*.md web/out/guides/
|
||||
cp CHANGELOG.md web/out/
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
with:
|
||||
|
Loading…
x
Reference in New Issue
Block a user