Skip to content

Commit e7e24eb

Browse files
committed
cd.yml updated
1 parent e5f694e commit e7e24eb

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

.github/workflows/cd.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
name: Deploy static content to Pages
22

33
on:
4+
push:
5+
branches: ["trunk"]
46
release:
57
types: [published]
68
workflow_dispatch:
79

8-
# Sets permissions of the ACCESS_TOKEN to allow deployment to GitHub Pages
10+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
911
permissions:
1012
contents: read
1113
pages: write
@@ -22,10 +24,6 @@ jobs:
2224
name: github-pages
2325
url: ${{ steps.deployment.outputs.page_url }}
2426
runs-on: ubuntu-latest
25-
if: |
26-
github.event_name == 'push' ||
27-
github.event_name == 'workflow_dispatch' ||
28-
(github.event_name == 'release' && github.event.action == 'published' && startsWith(github.ref, 'refs/tags/'))
2927
steps:
3028
- name: Checkout
3129
uses: actions/checkout@v4
@@ -47,10 +45,8 @@ jobs:
4745
- name: Upload artifact
4846
uses: actions/upload-pages-artifact@v3
4947
with:
50-
path: "./build"
48+
path: "./build" # Upload the Docusaurus build output
5149

5250
- name: Deploy to GitHub Pages
5351
id: deployment
5452
uses: actions/deploy-pages@v4
55-
with:
56-
github_token: ${{ secrets.ACCESS_TOKEN }} # Explicitly using GITHUB_TOKEN for clarity

0 commit comments

Comments
 (0)