We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6dd20ad commit 3cf1e24Copy full SHA for 3cf1e24
1 file changed
.github/workflows/deploy.yml
@@ -26,11 +26,20 @@ jobs:
26
- run: cd test && npm i
27
- run: node --run build
28
29
- - name: Deploy
30
- if: github.event_name == 'push' && github.ref_name == 'main'
31
- uses: JamesIves/github-pages-deploy-action@v4
+ deploy:
+ if: github.event_name == 'push' && github.ref_name == 'main'
+ needs: build
32
+ environment:
33
+ name: github-pages
34
+ url: ${{ steps.deployment.outputs.page_url }}
35
+ runs-on: ubuntu-latest
36
+
37
+ steps:
38
+ - name: Upload artifact
39
+ uses: actions/upload-pages-artifact@v3
40
with:
- branch: gh-pages
- folder: test/dist
- single-commit: true
- force: true
41
+ path: test/dist
42
43
+ - name: Deploy to GitHub Pages
44
+ id: deployment
45
+ uses: actions/deploy-pages@v4
0 commit comments