File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - main
7+ paths :
8+ - " .github/workflows/deploy-pages.yml"
9+ - " pitch-deck/**"
710 workflow_dispatch :
811
912permissions :
2932 - name : Prepare static site artifact
3033 run : |
3134 mkdir -p _site
32- cp index.html styles.css script.js _site/
35+ cp pitch-deck/ index.html pitch-deck/ styles.css pitch-deck/ script.js _site/
3336 touch _site/.nojekyll
3437
3538 - name : Upload Pages artifact
Original file line number Diff line number Diff line change 1+ {
2+ "installCommand" : " cd web && npm ci" ,
3+ "buildCommand" : " cd web && npm run build" ,
4+ "outputDirectory" : " web/out"
5+ }
Original file line number Diff line number Diff line change 11import type { NextConfig } from "next" ;
22
3+ const repoName = process . env . GITHUB_REPOSITORY ?. split ( "/" ) [ 1 ] ?? "" ;
4+ const isGitHubPagesBuild = process . env . GITHUB_ACTIONS === "true" && repoName . length > 0 ;
5+
36const nextConfig : NextConfig = {
7+ output : "export" ,
8+ trailingSlash : true ,
9+ basePath : isGitHubPagesBuild ? `/${ repoName } ` : "" ,
10+ assetPrefix : isGitHubPagesBuild ? `/${ repoName } /` : undefined ,
411 images : {
12+ unoptimized : true ,
513 remotePatterns : [
614 {
715 protocol : "https" ,
You can’t perform that action at this time.
0 commit comments