File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed
Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change 55name : Deploy Next.js site to Pages
66
77on :
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
1612permissions :
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.
2317concurrency :
2418 group : " pages"
2519 cancel-in-progress : false
2620
2721jobs :
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
You can’t perform that action at this time.
0 commit comments