Skip to content

Commit 9a41c04

Browse files
authored
Update main.yml
1 parent 1f52f00 commit 9a41c04

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

.github/workflows/main.yml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,19 @@ jobs:
2020

2121
# - name: Build
2222
# run: npm run build
23-
- name: Set dist folder
24-
run: git subtree push --prefix dist origin gh-pages
25-
26-
- name: Github Pages Custom Deploy
27-
uses: sterlingwes/[email protected]
23+
24+
- name: Build and Deploy
25+
uses: JamesIves/github-pages-deploy-action@releases/v3
2826
with:
29-
# A personal access token needed to push your site after it has been built.
30-
access-token: ${{ secrets.GHP_TOKEN }}
31-
build-command: npm run build
32-
# The subdirectory that your build command outputs your site assets to.
33-
source-directory: dist
27+
ACCESS_TOKEN: ${{ secrets.GHP_TOKEN }}
28+
BRANCH: gh-pages # The branch the action should deploy to.
29+
FOLDER: dist # The folder the action should deploy.
30+
31+
# - name: Github Pages Custom Deploy
32+
# uses: sterlingwes/[email protected]
33+
# with:
34+
# # A personal access token needed to push your site after it has been built.
35+
# access-token: ${{ secrets.GHP_TOKEN }}
36+
# build-command: npm run build
37+
# # The subdirectory that your build command outputs your site assets to.
38+
# source-directory: dist

0 commit comments

Comments
 (0)