Skip to content

Commit ade8d27

Browse files
committed
separate pipeline
Signed-off-by: seven <[email protected]>
1 parent 20a52c7 commit ade8d27

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/page-site.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
pull_request:
66
branches: [master]
77

8+
permissions:
9+
checks: write
10+
contents: write
11+
812
jobs:
913
publish:
1014
runs-on: ubuntu-latest
@@ -17,13 +21,21 @@ jobs:
1721
uses: actions/checkout@v4
1822
- run: npm ci
1923
- run: npm run docs:build
20-
- name: Build Release (tag, release)
24+
- name: Create Tag
2125
uses: jaywcjlove/create-tag-action@main
2226
if: ${{ github.ref == 'refs/heads/master' }}
27+
id: create_tag
28+
with:
29+
token: ${{ secrets.GITHUB_TOKEN }}
30+
31+
- name: Create Release
32+
uses: jaywcjlove/create-tag-action@main
33+
if: steps.create_tag.outputs.successful
2334
id: tag_release
2435
with:
2536
release: true
2637
token: ${{ secrets.GITHUB_TOKEN }}
38+
2739
- name: Publish to Cloudflare Pages
2840
uses: cloudflare/pages-action@v1
2941
if: steps.tag_release.outputs.successful

0 commit comments

Comments
 (0)