Skip to content

Commit 79fdaae

Browse files
Update nextjs.yml
1 parent c8760b0 commit 79fdaae

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

.github/workflows/nextjs.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,20 @@
55
name: Deploy Next.js site to Pages
66

77
on:
8-
# Runs on pushes targeting the default branch
98
push:
109
branches: ["main"]
11-
12-
# Allows you to run this workflow manually from the Actions tab
1310
workflow_dispatch:
1411

15-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1612
permissions:
1713
contents: read
1814
pages: write
1915
id-token: write
2016

21-
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
22-
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2317
concurrency:
2418
group: "pages"
2519
cancel-in-progress: false
2620

2721
jobs:
28-
# Build job
2922
build:
3023
runs-on: ubuntu-latest
3124
steps:
@@ -89,12 +82,24 @@ jobs:
8982
cp .next/build-manifest.json deploy/api/build-manifest
9083
cp .next/build-manifest.json deploy/api/build-manifest.json
9184
cp .next/build-manifest.json deploy/api/build-manifest.txt
85+
- name: Modify Deployment
86+
run: |
87+
mkdir -p deploy/_just/
88+
FILE_ID=1
89+
for file in _just/js/*; do
90+
cp "$file" "deploy/_just/${FILE_ID}.js"
91+
FILE_ID=$((FILE_ID + 1))
92+
done
93+
FILE_ID=1
94+
for file in _just/style/*; do
95+
cp "$file" "deploy/_just/${FILE_ID}.css"
96+
FILE_ID=$((FILE_ID + 1))
97+
done
9298
- name: Upload artifact
9399
uses: actions/upload-pages-artifact@v3
94100
with:
95101
path: deploy
96102

97-
# Deployment job
98103
deploy:
99104
environment:
100105
name: github-pages

0 commit comments

Comments
 (0)