Skip to content

Commit a217ea2

Browse files
authored
Update deploy workflow to Github Pages
1 parent ae6db4a commit a217ea2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/deploy.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
- master
66
paths:
77
- docs/**
8+
89
jobs:
910
deploy:
1011
runs-on: ubuntu-latest
@@ -23,12 +24,11 @@ jobs:
2324
- name: Build site
2425
run: npm run build
2526
working-directory: ./docs
26-
27-
- name: Deploy Files
28-
uses: SamKirkland/FTP-Deploy-Action@v4.3.4
27+
28+
- name: Deploy to GitHub Pages
29+
uses: peaceiris/actions-gh-pages@v3
2930
with:
30-
server: ${{ secrets.FTP_HOST }}
31-
username: ${{ secrets.FTP_USERNAME }}
32-
password: ${{ secrets.FTP_PASSWORD }}
33-
local-dir: ./docs/build/
31+
personal_token: ${{ secrets.GITHUB_TOKEN }} # GitHub token for authentication
32+
branch: gh-pages # Branch where your GitHub Pages content will be deployed
33+
folder: ./docs/build # Path to the build output folder
3434

0 commit comments

Comments
 (0)