Skip to content

Commit ac1833d

Browse files
Update deploy.yml
1 parent 8576150 commit ac1833d

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,12 @@ jobs:
3838
run: npm ci
3939
- name: Build
4040
run: npm run build
41-
- name: Setup Pages
42-
uses: actions/configure-pages@v4
43-
- name: Upload artifact
44-
uses: actions/upload-pages-artifact@v3
45-
with:
46-
# Upload dist folder
47-
path: './dist'
41+
4842
- name: Deploy to GitHub Pages
49-
id: deployment
50-
uses: actions/deploy-pages@v4
43+
uses: s0/git-publish-subdir-action@develop
44+
env:
45+
REPO: self
46+
BRANCH: gh-pages # The branch name where you want to push the assets
47+
FOLDER: ./dist # The directory where your assets are generated
48+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GitHub will automatically add this - you don't need to bother getting a token
49+
MESSAGE: "Build: ({sha}) {msg}" # The commit message

0 commit comments

Comments
 (0)