Skip to content

Commit 83484fc

Browse files
committed
Update deploy.yml
1 parent 6dd20ad commit 83484fc

1 file changed

Lines changed: 26 additions & 7 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,30 @@ jobs:
2626
- run: cd test && npm i
2727
- run: node --run build
2828

29-
- name: Deploy
30-
if: github.event_name == 'push' && github.ref_name == 'main'
31-
uses: JamesIves/github-pages-deploy-action@v4
29+
# - name: Deploy
30+
# if: github.event_name == 'push' && github.ref_name == 'main'
31+
# uses: JamesIves/github-pages-deploy-action@v4
32+
# with:
33+
# branch: gh-pages
34+
# folder: test/dist
35+
# single-commit: true
36+
# force: true
37+
38+
deploy:
39+
if: github.event_name == 'push' && github.ref_name == 'main'
40+
needs: build
41+
environment:
42+
name: github-pages
43+
url: ${{ steps.deployment.outputs.page_url }}
44+
runs-on: ubuntu-latest
45+
46+
steps:
47+
- name: Upload artifact
48+
uses: actions/upload-pages-artifact@v3
3249
with:
33-
branch: gh-pages
34-
folder: test/dist
35-
single-commit: true
36-
force: true
50+
# Upload entire repository
51+
path: "dist/test"
52+
53+
- name: Deploy to GitHub Pages
54+
id: deployment
55+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)