Skip to content

Commit 2ff7bc0

Browse files
authored
Merge pull request #4 from tuna-os/copilot/fix-3
2 parents 8d98c5e + 200367f commit 2ff7bc0

File tree

1 file changed

+17
-25
lines changed

1 file changed

+17
-25
lines changed

.github/workflows/deploy.yml

Lines changed: 17 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,20 @@ on:
77
# Review gh actions docs if you want to further define triggers, paths, etc
88
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
99

10+
permissions:
11+
contents: read
12+
pages: write
13+
id-token: write
14+
15+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
16+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
17+
concurrency:
18+
group: "pages"
19+
cancel-in-progress: false
20+
1021
jobs:
11-
build:
12-
name: Build Docusaurus
22+
deploy:
23+
name: Deploy to GitHub Pages
1324
runs-on: ubuntu-latest
1425
steps:
1526
- uses: actions/checkout@v4
@@ -25,27 +36,8 @@ jobs:
2536
- name: Build website
2637
run: npm run build
2738

28-
- name: Upload Build Artifact
29-
uses: actions/upload-pages-artifact@v3
30-
with:
31-
path: build
32-
33-
deploy:
34-
name: Deploy to GitHub Pages
35-
needs: build
36-
37-
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
38-
permissions:
39-
pages: write # to deploy to Pages
40-
id-token: write # to verify the deployment originates from an appropriate source
41-
42-
# Deploy to the github-pages environment
43-
environment:
44-
name: github-pages
45-
url: ${{ steps.deployment.outputs.page_url }}
46-
47-
runs-on: ubuntu-latest
48-
steps:
4939
- name: Deploy to GitHub Pages
50-
id: deployment
51-
uses: actions/deploy-pages@v4
40+
uses: peaceiris/actions-gh-pages@v4
41+
with:
42+
github_token: ${{ secrets.GITHUB_TOKEN }}
43+
publish_dir: ./build

0 commit comments

Comments
 (0)