Skip to content

Commit 531ce36

Browse files
authored
Merge pull request #42 from namiba-work/main
Switching to using a gh-pages branch instead of main
2 parents 02517c6 + 52aaf9e commit 531ce36

File tree

1 file changed

+7
-17
lines changed

1 file changed

+7
-17
lines changed

.github/workflows/gh-pages-deploy.yaml

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ jobs:
2121

2222
timeout-minutes: 10
2323

24-
environment:
25-
name: github-pages
26-
url: ${{ steps.deployment.outputs.page_url }}
24+
environment: github-pages
2725

2826
runs-on: ubuntu-latest
2927

@@ -70,18 +68,10 @@ jobs:
7068

7169
# Deploy with Github Static Pages
7270

73-
- name: Setup Pages
74-
uses: actions/configure-pages@v4
71+
- name: Deploy to gh-pages branch 🚀
72+
uses: peaceiris/actions-gh-pages@v4
7573
with:
76-
enablement: true
77-
# token:
78-
79-
- name: Upload artifact
80-
uses: actions/upload-pages-artifact@v3
81-
with:
82-
# Upload dist dir
83-
path: './dist'
84-
85-
- name: Deploy to GitHub Pages 🚀
86-
id: deployment
87-
uses: actions/deploy-pages@v4
74+
github_token: ${{ secrets.GITHUB_TOKEN }}
75+
publish_dir: ./dist
76+
publish_branch: gh-pages
77+
force_orphan: true

0 commit comments

Comments
 (0)