24
24
- name : Check out
25
25
uses : actions/checkout@v3
26
26
27
- - name : Generate your content
28
- run : echo "Optional placeholder. Put your project's static website generator command here."
29
-
30
27
- name : Set up Node.js
31
28
uses : actions/setup-node@v2
32
29
with :
@@ -35,36 +32,36 @@ jobs:
35
32
- name : Install dependencies
36
33
run : cd client && npm install
37
34
38
- - name : Build static website
35
+ - name : Build static files
39
36
run : cd client && npm run build
40
37
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
43
40
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
50
47
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
55
52
56
53
- name : Upload artifact
57
54
uses : actions/upload-pages-artifact@v2
58
55
with :
59
- path : client/out
56
+ path : ./ client/out
60
57
61
- deployment :
62
- runs-on : ubuntu-latest
58
+ deploy :
63
59
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
66
64
steps :
67
- - name : Deploy to github pages
65
+ - name : Deploy to GitHub Pages
68
66
id : deployment
69
67
uses : actions/deploy-pages@v2
70
- # ...deployment-specific steps
0 commit comments