-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (57 loc) · 1.72 KB
/
next.js.yml
File metadata and controls
72 lines (57 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Next.js Publish
on:
workflow_dispatch:
push:
branches:
- real/currents
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
contents: write
# https://docs.github.com/en/actions/security-for-github-actions/security-hardening-your-deployments/configuring-openid-connect-in-cloud-providers#updating-your-github-actions-workflow
id-token: write # This is required for requesting the JWT
pages: write
pull-requests: write
repository-projects: write
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Print GITHUB_TOKEN
run: echo ${{ secrets.GITHUB_TOKEN }}
- name: Print GITHUB_WORKSPACE
run: echo ${GITHUB_WORKSPACE}
- name: Print working directory
run: echo $(pwd)
- name: Setup Quarto
uses: ./.github/workflows/quarto
- name: Setup Node.js
uses: ./.github/workflows/node.js
- name: Setup Pages
uses: actions/configure-pages@v4
# with:
# static_site_generator: next
- name: Build with Next.js
run: npm run build
- name: List build outputs
run: ls -lA out/
- name: Upload static files as artifact
id: deploy
uses: actions/upload-pages-artifact@v3 # or specific "vX.X.X" version tag for this action
with:
path: out/
- name: Publish to GitHub Pages
id: publish
uses: actions/deploy-pages@v4