mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-16 09:11:38 +00:00
Merge pull request #52 from DefectingCat/github-action
Update build process
This commit is contained in:
10
.github/workflows/pages.yml
vendored
10
.github/workflows/pages.yml
vendored
@ -7,7 +7,7 @@ name: Deploy Next.js site to Pages
|
|||||||
on:
|
on:
|
||||||
# Runs on pushes targeting the default branch
|
# Runs on pushes targeting the default branch
|
||||||
push:
|
push:
|
||||||
branches: ["master"]
|
branches: ['master']
|
||||||
|
|
||||||
# Allows you to run this workflow manually from the Actions tab
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@ -20,7 +20,7 @@ permissions:
|
|||||||
|
|
||||||
# Allow one concurrent deployment
|
# Allow one concurrent deployment
|
||||||
concurrency:
|
concurrency:
|
||||||
group: "pages"
|
group: 'pages'
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@ -50,7 +50,7 @@ jobs:
|
|||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: "16"
|
node-version: '16'
|
||||||
cache: ${{ steps.detect-package-manager.outputs.manager }}
|
cache: ${{ steps.detect-package-manager.outputs.manager }}
|
||||||
- name: Setup Pages
|
- name: Setup Pages
|
||||||
uses: actions/configure-pages@v2
|
uses: actions/configure-pages@v2
|
||||||
@ -73,9 +73,9 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
|
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
|
||||||
- name: Build with Next.js
|
- name: Build with Next.js
|
||||||
run: ${{ steps.detect-package-manager.outputs.runner }} next build
|
run: ${{ steps.detect-package-manager.outputs.runner }} build
|
||||||
- name: Static HTML export with Next.js
|
- name: Static HTML export with Next.js
|
||||||
run: ${{ steps.detect-package-manager.outputs.runner }} next export
|
run: ${{ steps.detect-package-manager.outputs.runner }} build:search
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-pages-artifact@v1
|
uses: actions/upload-pages-artifact@v1
|
||||||
with:
|
with:
|
||||||
|
Reference in New Issue
Block a user