Skip to content

Commit 61a6311

Browse files
committed
Refactor GitHub Actions workflow for deployment to GitHub Pages, updating permissions and replacing the deployment action with peaceiris/actions-gh-pages for improved functionality.
1 parent 4e4d93b commit 61a6311

1 file changed

Lines changed: 5 additions & 21 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,33 +7,17 @@ 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:
1913
deploy:
20-
environment:
21-
name: github-pages
22-
url: ${{ steps.deployment.outputs.page_url }}
2314
runs-on: ubuntu-latest
2415
steps:
2516
- name: Checkout
2617
uses: actions/checkout@v4
2718

28-
- name: Setup Pages
29-
uses: actions/configure-pages@v4
30-
31-
- name: Upload artifact
32-
uses: actions/upload-pages-artifact@v3
33-
with:
34-
path: '.'
35-
3619
- name: Deploy to GitHub Pages
37-
id: deployment
38-
uses: actions/deploy-pages@v4
39-
20+
uses: peaceiris/actions-gh-pages@v3
21+
with:
22+
github_token: ${{ secrets.GITHUB_TOKEN }}
23+
publish_dir: .

0 commit comments

Comments
 (0)