Skip to content

Commit b7ce5b4

Browse files
authored
Create publishPages
1 parent 098bb02 commit b7ce5b4

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/publishPages

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Publish pages
2+
3+
on:
4+
push:
5+
branches:
6+
# NOTE: You may want to limit the trigger branch to be "main" or "master" etc.
7+
- '*'
8+
9+
jobs:
10+
publish:
11+
permissions:
12+
contents: write
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Check out
16+
# You may use a newer version of https://github.com/actions/checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Generate your content
20+
run: echo "Optional placeholder. Put your project's static website generator command here."
21+
22+
- name: Publish current workdir (which contains generated content) to GitHub Pages
23+
uses: rayluo/[email protected]
24+
25+
with:
26+
27+
# Optional.
28+
#
29+
# Default value "." means the root directory of your project will be published.
30+
#
31+
# You can use whatever directory your project uses,
32+
# for example "wwwroot" (without leading "./").
33+
# Such a directory does *not* have to already exist in your repo,
34+
# it could be an output directory created dynamically
35+
# by your static website builder.
36+
source-directory: .
37+
38+
# Optional. Default value "gh-pages".
39+
# It specifies the temporary branch which hosts the static website.
40+
# Each build will REMOVE this branch and replace it with new content.
41+
# (If you want to keep your old "gh-pages" branch,
42+
# you should define a different target branch for this GPO action to work with.)
43+
target-branch: gh-pages

0 commit comments

Comments
 (0)