File tree Expand file tree Collapse file tree 1 file changed +16
-14
lines changed Expand file tree Collapse file tree 1 file changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -51,19 +51,21 @@ jobs:
51
51
cd website/docs
52
52
wget https://raw.githubusercontent.com/nios-students/helper_scripts/refs/heads/main/build.sh
53
53
bash build.sh SKIP_DOCS
54
- # - name: Upload artifact
55
- # uses: actions/upload-pages-artifact@v3
56
- # with:
57
- # path: docs/.vitepress/dist
54
+ - name : Upload artifact
55
+ if : github.ref == 'refs/heads/main' && github.event_name == 'push'
56
+ uses : actions/upload-pages-artifact@v3
57
+ with :
58
+ path : website/docs/.vitepress/dist
58
59
59
60
# Deployment job
60
- # deploy:
61
- # environment:
62
- # name: github-pages
63
- # url: ${{ steps.deployment.outputs.page_url }}
64
- # needs: build
65
- # runs-on: ubuntu-latest
66
- # steps:
67
- # - name: Deploy to GitHub Pages
68
- # id: deployment
69
- # uses: actions/deploy-pages@v4
61
+ deploy :
62
+ if : github.ref == 'refs/heads/main' && github.event_name == 'push'
63
+ environment :
64
+ name : github-pages
65
+ url : ${{ steps.deployment.outputs.page_url }}
66
+ needs : build
67
+ runs-on : ubuntu-latest
68
+ steps :
69
+ - name : Deploy to GitHub Pages
70
+ id : deployment
71
+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments