File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 1- name : Build master
1+ name : Build main
22
33on :
44 push :
@@ -40,18 +40,21 @@ jobs:
4040
4141 # Upload the static files
4242 - name : Upload documentation
43- uses : actions/upload-pages-artifact@v2
43+ if : matrix.os == 'ubuntu-latest'
44+ uses : actions/upload-pages-artifact@v3
4445 with :
4546 path : ./output
4647
4748 # GitHub Actions recommends deploying in a separate job.
48- build -docs :
49+ upload -docs :
4950 runs-on : ubuntu-latest
5051 needs : build
52+ # ensures that the job only runs when the workflow is triggered by a push event to the main branch
53+ if : github.ref == 'refs/heads/main'
5154 steps :
5255 - name : Deploy to GitHub Pages
5356 id : deployment
54- uses : actions/deploy-pages@v2
57+ uses : actions/deploy-pages@v4
5558
5659 analyze :
5760 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments