Skip to content

Commit d25f345

Browse files
Merge pull request #53 from sameeragunarathne/docusourus-migration
Fix publish permission issue
2 parents 771df6f + 6ea38e5 commit d25f345

1 file changed

Lines changed: 6 additions & 22 deletions

File tree

.github/workflows/publish_docs.yaml

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,10 @@ on:
77
workflow_dispatch:
88

99
permissions:
10-
contents: read
11-
pages: write
12-
id-token: write
13-
14-
concurrency:
15-
group: pages
16-
cancel-in-progress: false
10+
contents: write
1711

1812
jobs:
19-
build:
13+
release-wso2-open-healthcare-docs:
2014
runs-on: ubuntu-latest
2115
steps:
2216
- name: Check out code
@@ -42,18 +36,8 @@ jobs:
4236
env:
4337
BASE_URL: /${{ github.event.repository.name }}/
4438

45-
- name: Upload GitHub Pages artifact
46-
uses: actions/upload-pages-artifact@v3
47-
with:
48-
path: en/build
49-
50-
deploy:
51-
needs: build
52-
runs-on: ubuntu-latest
53-
environment:
54-
name: github-pages
55-
url: ${{ steps.deployment.outputs.page_url }}
56-
steps:
5739
- name: Deploy to GitHub Pages
58-
id: deployment
59-
uses: actions/deploy-pages@v4
40+
uses: peaceiris/actions-gh-pages@v4
41+
with:
42+
github_token: ${{ secrets.GITHUB_TOKEN }}
43+
publish_dir: en/build

0 commit comments

Comments
 (0)