Skip to content

Commit 878ac31

Browse files
committed
fix 29?
1 parent a2f7a1a commit 878ac31

File tree

1 file changed

+20
-23
lines changed

1 file changed

+20
-23
lines changed

.github/workflows/deploy-next.yml

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ jobs:
2424
- name: Check out
2525
uses: actions/checkout@v3
2626

27-
- name: Generate your content
28-
run: echo "Optional placeholder. Put your project's static website generator command here."
29-
3027
- name: Set up Node.js
3128
uses: actions/setup-node@v2
3229
with:
@@ -35,36 +32,36 @@ jobs:
3532
- name: Install dependencies
3633
run: cd client && npm install
3734

38-
- name: Build static website
35+
- name: Build static files
3936
run: cd client && npm run build
4037

41-
- name: Publish current workdir (which contains generated content) to GitHub Pages
42-
uses: rayluo/github-pages-overwriter@v1.3
38+
# - name: Publish current workdir (which contains generated content) to GitHub Pages
39+
# uses: rayluo/github-pages-overwriter@v1.3
4340

44-
with:
45-
# Optional. Default value "." means the root directory of your project will be published.
46-
# You can use whatever directory your project uses, for example "wwwroot".
47-
# Such a directory does *not* have to already exist in your repo,
48-
# it could be an output directory created dynamically by your static website builder.
49-
source-directory: client/out
41+
# with:
42+
# # Optional. Default value "." means the root directory of your project will be published.
43+
# # You can use whatever directory your project uses, for example "wwwroot".
44+
# # Such a directory does *not* have to already exist in your repo,
45+
# # it could be an output directory created dynamically by your static website builder.
46+
# source-directory: client/out
5047

51-
# Optional. Default value "gh-pages".
52-
# It specifies the temporary branch which hosts the static website.
53-
# Each build will OVERWRITE this branch.
54-
# target-branch: gh-pages-test
48+
# # Optional. Default value "gh-pages".
49+
# # It specifies the temporary branch which hosts the static website.
50+
# # Each build will OVERWRITE this branch.
51+
# # target-branch: gh-pages-test
5552

5653
- name: Upload artifact
5754
uses: actions/upload-pages-artifact@v2
5855
with:
59-
path: client/out
56+
path: ./client/out
6057

61-
deployment:
62-
runs-on: ubuntu-latest
58+
deploy:
6359
environment:
64-
name: production
65-
url: https://github.com
60+
name: github-pages
61+
url: ${{ steps.deployment.outputs.page_url }}
62+
runs-on: ubuntu-latest
63+
needs: build
6664
steps:
67-
- name: Deploy to github pages
65+
- name: Deploy to GitHub Pages
6866
id: deployment
6967
uses: actions/deploy-pages@v2
70-
# ...deployment-specific steps

0 commit comments

Comments
 (0)