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:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: "20"
|
node-version: "20"
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
cache-dependency-path: web/package-lock.json
|
cache-dependency-path: '**/package-lock.json'
|
||||||
|
|
||||||
- name: Setup Pages
|
- name: Setup Pages
|
||||||
uses: actions/configure-pages@v4
|
uses: actions/configure-pages@v4
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
cd web
|
cd web
|
||||||
npm ci
|
npm ci --prefer-offline --no-audit
|
||||||
|
|
||||||
- name: Build with Next.js
|
- name: Build with Next.js
|
||||||
run: |
|
run: |
|
||||||
cd web
|
cd web
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
- name: Static HTML export with Next.js
|
- name: Static HTML export with Next.js
|
||||||
run: |
|
run: |
|
||||||
cd web
|
cd web
|
||||||
npm run export
|
npm run export
|
||||||
|
|
||||||
- name: Copy guides and changelog
|
- name: Copy guides and changelog
|
||||||
run: |
|
run: |
|
||||||
mkdir -p web/out/guides
|
mkdir -p web/out/guides
|
||||||
cp guides/*.md web/out/guides/
|
cp guides/*.md web/out/guides/
|
||||||
cp CHANGELOG.md web/out/
|
cp CHANGELOG.md web/out/
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-pages-artifact@v3
|
uses: actions/upload-pages-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user