@@ -16,24 +16,7 @@ A GitHub Action to deploy your static site to GitHub Pages with [Static Site Gen
1616
1717## Getting started
1818
19- ### (1) Add deploy Key
20-
21- Generate deploy key with the following command.
22-
23- ``` sh
24- ssh-keygen -t rsa -b 4096 -C " your@email.com" -f gh-pages -N " "
25-
26- # You will get 2 files:
27- # gh-pages.pub (public key)
28- # gh-pages (private key)
29- ```
30-
31- Next, Go to ** Repository Settings**
32-
33- - Go to ** Deploy Keys** and add your public key with the "Allow write access"
34- - Go to ** Secrets** and add your private key as ` ACTIONS_DEPLOY_KEY `
35-
36- ### (2) Create ` main.workflow `
19+ ### Create ` .github/main.workflow `
3720
3821An example with Hugo action.
3922
@@ -60,18 +43,18 @@ action "is-not-branch-deleted" {
6043
6144action "build" {
6245 needs = ["is-branch-master", "is-not-branch-deleted"]
63- uses = "peaceiris/actions-hugo@v0.55.6 "
46+ uses = "peaceiris/actions-hugo@v0.56.3 "
6447 args = ["--gc", "--minify", "--cleanDestinationDir"]
6548}
6649
6750action "deploy" {
6851 needs = "build"
69- uses = "peaceiris/actions-gh-pages@v1.0.1 "
52+ uses = "peaceiris/actions-gh-pages@v1.1.0 "
7053 env = {
7154 PUBLISH_DIR = "./public"
7255 PUBLISH_BRANCH = "gh-pages"
7356 }
74- secrets = ["ACTIONS_DEPLOY_KEY "]
57+ secrets = ["GITHUB_TOKEN "]
7558}
7659```
7760
@@ -115,12 +98,12 @@ action "mkdocs-build" {
11598
11699action "deploy" {
117100 needs = ["mkdocs-build"]
118- uses = "peaceiris/actions-gh-pages@v1.0.1 "
101+ uses = "peaceiris/actions-gh-pages@v1.1.0 "
119102 env = {
120103 PUBLISH_DIR = "./site"
121104 PUBLISH_BRANCH = "gh-pages"
122105 }
123- secrets = ["ACTIONS_DEPLOY_KEY "]
106+ secrets = ["GITHUB_TOKEN "]
124107}
125108```
126109
@@ -137,5 +120,3 @@ action "deploy" {
137120## About the author
138121
139122- [ peaceiris's homepage] ( https://peaceiris.com/ )
140-
141- <a href =" https://www.patreon.com/peaceiris " ><img src =" ./images/patreon.jpg " alt =" peaceiris - Patreon " width =" 150px " ></a >
0 commit comments