File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change 149
149
- master
150
150
151
151
jobs:
152
- build- deploy:
152
+ deploy:
153
153
runs-on: ubuntu-18.04
154
154
steps:
155
155
- uses: actions/checkout@v1
@@ -186,13 +186,28 @@ The above example is for [Project Pages sites]. (`<username>/<project_name>` rep
186
186
For [User and Organization Pages sites] (`<username>/<username>.github.io` repository),
187
187
we have to set `master` branch to `PUBLISH_BRANCH`.
188
188
189
+ A default value of `publish_branch` is `gh-pages`.
190
+
189
191
` ` ` yaml
190
192
on:
191
193
push:
192
194
branches:
193
195
- source # default branch
194
196
195
- publish_branch: master # deploying branch
197
+ jobs:
198
+ deploy:
199
+ runs-on: ubuntu-18.04
200
+ steps:
201
+ - uses: actions/checkout@v2
202
+
203
+ - run: somebuild
204
+
205
+ - name: Deploy
206
+ uses: peaceiris/actions-gh-pages@v3
207
+ with:
208
+ deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
209
+ publish_dir: ./public
210
+ publish_branch: master # deploying branch
196
211
` ` `
197
212
198
213
[Project Pages sites] : https://help.github.com/en/articles/user-organization-and-project-pages#project-pages-sites
You can’t perform that action at this time.
0 commit comments