File tree Expand file tree Collapse file tree 3 files changed +30
-3
lines changed
Expand file tree Collapse file tree 3 files changed +30
-3
lines changed Original file line number Diff line number Diff line change 7373 name : github-pages
7474 path : public
7575 retention-days : 7
76+
77+ - name : Trigger Publish to Netlify Workflow
78+ uses : benc-uk/workflow-dispatch@v1
79+ with :
80+ workflow : publish-site-to-netlify.yml
81+
82+ - name : Trigger Publish to GitHub Pages Workflow
83+ uses : benc-uk/workflow-dispatch@v1
84+ with :
85+ workflow : publish-site-to-gh-pages.yml
Original file line number Diff line number Diff line change 1- name : Publish GitHub Pages
1+ name : Publish Site to GitHub Pages
22
33on :
4+ push :
5+ pull_request :
46 workflow_dispatch :
7+ inputs :
8+ publish_site :
9+ type : boolean
10+ description : ' Publish To GH Pages'
11+ default : false
512
613jobs :
714 publish-to-github :
1825 uses : actions/configure-pages@v5
1926
2027 - name : Deploy Pages
28+ if : github.event.inputs.publish_site
2129 id : deployment
22- uses : actions/deploy-pages@v4
30+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change 1- name : Publish to Netlify
1+ name : Publish Site to Netlify
22
33on :
4+ push :
5+ pull_request :
46 workflow_dispatch :
7+ inputs :
8+ publish_site :
9+ type : boolean
10+ description : ' Publish To Netlify'
11+ default : false
512
613jobs :
714 publish-to-netlify :
2936 restore-keys : ${{ runner.os }}-netlify-cli
3037
3138 - name : Deploy to Netlify
39+ if : github.event.inputs.publish_site
3240 uses : South-Paw/action-netlify-cli@v2
3341 id : netlify
3442 with :
3846 NETLIFY_SITE_ID : ${{ secrets.NETLIFY_SITE_ID }}
3947
4048 - name : Get Netlify Preview URL
49+ if : github.event.inputs.publish_site
4150 id : netlify-status
4251 run : |
4352 echo "NETLIFY_DEPLOY_URL=${{ fromJson(steps.netlify.outputs.NETLIFY_OUTPUT).deploy_url }}" >> $GITHUB_OUTPUT
You can’t perform that action at this time.
0 commit comments