File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Simple workflow for deploying static content to GitHub Pages
22name : Deploy static content to Pages
33
4- runs :
5- using : ' node20'
6- main : ' main.js'
7-
84on :
9- # Runs on pushes targeting the default branch
5+ # Runs on pushes targeting the master branch
106 push :
117 branches : ["master"]
128
139 # Allows you to run this workflow manually from the Actions tab
1410 workflow_dispatch :
15-
11+
1612# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1713permissions :
1814 contents : read
1915 pages : write
2016 id-token : write
2117
2218# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
23- # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2419concurrency :
2520 group : " pages"
2621 cancel-in-progress : false
@@ -35,13 +30,21 @@ jobs:
3530 steps :
3631 - name : Checkout
3732 uses : actions/checkout@v4
33+
34+ # This triggers your action file located at: /.github/actions/my-custom-deployer/action.yml
35+ - name : Run Custom Node Deployer
36+ uses : ./.github/actions/my-custom-deployer
37+
3838 - name : Setup Pages
39- uses : actions/configure-pages@v4
39+ uses : actions/configure-pages@v5
40+
4041 - name : Upload artifact
4142 uses : actions/upload-pages-artifact@v3
4243 with :
44+ # IMPORTANT: Your main.js script must output its built files into this folder
4345 # Upload entire repository
4446 path : ' ./docs'
47+
4548 - name : Deploy to GitHub Pages
4649 id : deployment
4750 uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments