Skip to content

Commit b338bae

Browse files
committed
Using official GP action
1 parent b9f5768 commit b338bae

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

.github/workflows/deploy.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ permissions:
1717
id-token: write
1818

1919
jobs:
20-
test-and-deploy:
20+
test-and-build:
2121
runs-on: ubuntu-latest
2222

2323
steps:
@@ -44,9 +44,18 @@ jobs:
4444
browser: chrome
4545
config: baseUrl=http://localhost:5173
4646

47-
- name: Deploy to GitHub Pages
48-
if: github.ref == 'refs/heads/main'
49-
uses: peaceiris/actions-gh-pages@v4
47+
- name: Upload artifact
48+
uses: actions/upload-pages-artifact@v1
5049
with:
51-
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
52-
publish_dir: ./dist
50+
path: ./dist
51+
52+
deploy:
53+
environment:
54+
name: github-pages
55+
url: ${{ steps.deployment.outputs.page_url }}
56+
runs-on: ubuntu-latest
57+
needs: test-and-build
58+
steps:
59+
- name: Deploy to GitHub Pages
60+
id: deployment
61+
uses: actions/deploy-pages@v1

0 commit comments

Comments
 (0)