Skip to content

Commit feee442

Browse files
committed
ci: publish docs to github pages
1 parent cdfe236 commit feee442

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)