Skip to content

Commit b737d53

Browse files
committed
refactor: streamline GitHub Actions workflow for deployment
1 parent 36fbcc5 commit b737d53

File tree

1 file changed

+5
-24
lines changed

1 file changed

+5
-24
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,8 @@ on:
55
branches: [ main ]
66
workflow_dispatch:
77

8-
permissions:
9-
contents: read
10-
pages: write
11-
id-token: write
12-
13-
concurrency:
14-
group: "pages"
15-
cancel-in-progress: false
16-
178
jobs:
18-
build:
9+
build-and-deploy:
1910
runs-on: ubuntu-latest
2011
steps:
2112
- name: Checkout
@@ -33,18 +24,8 @@ jobs:
3324
- name: Build
3425
run: npm run build
3526

36-
- name: Upload artifact
37-
uses: actions/upload-pages-artifact@v3
27+
- name: Deploy to gh-pages
28+
uses: peaceiris/actions-gh-pages@v3
3829
with:
39-
path: ./dist
40-
41-
deploy:
42-
environment:
43-
name: github-pages
44-
url: ${{ steps.deployment.outputs.page_url }}
45-
runs-on: ubuntu-latest
46-
needs: build
47-
steps:
48-
- name: Deploy to GitHub Pages
49-
id: deployment
50-
uses: actions/deploy-pages@v4
30+
github_token: ${{ secrets.GITHUB_TOKEN }}
31+
publish_dir: ./dist

0 commit comments

Comments
 (0)