File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -97,10 +97,28 @@ jobs:
9797 with :
9898 name : html-docs
9999 path : html_docs/
100+ - uses : actions/upload-pages-artifact@v4
101+ with :
102+ path : html_docs/
100103 - uses : actions/upload-artifact@v6
101104 with :
102105 name : manpage
103106 path : manpage/getmac.1
107+ deploy :
108+ name : Publish docs to GitHub Pages
109+ needs : docs
110+ runs-on : ubuntu-latest
111+ if : github.ref == 'refs/heads/main' || github.ref == 'refs/heads/1.0.0-wip'
112+ permissions :
113+ pages : write
114+ id-token : write
115+ environment :
116+ name : github-pages
117+ url : ${{ steps.deployment.outputs.page_url }}
118+ steps :
119+ - name : Deploy to GitHub Pages
120+ id : deployment
121+ uses : actions/deploy-pages@v4
104122
105123# TODO: publish releases using CI
106124# TODO: don't publish pre-releases OR publish them as pre-releases to PyPI
You can’t perform that action at this time.
0 commit comments