-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #108 from twisted/98-apidocs
Use official actions to publish the API docs
- Loading branch information
Showing
2 changed files
with
35 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Publish API docs | ||
|
||
outputs: | ||
docs_url: | ||
description: "Deployed URL" | ||
value: ${{ steps.deployment.outputs.page_url }}/docs/ | ||
|
||
runs: | ||
using: "composite" | ||
|
||
steps: | ||
|
||
- name: Prepare GitHub Pages | ||
run: | | ||
mkdir website | ||
cat >website/index.html <<! | ||
<DOCTYPE html> | ||
<meta http-equiv="refresh" content="0;URL=./docs/"> | ||
<a href="./docs/">Click here if not redirected</a> | ||
! | ||
mv apidocs website/docs | ||
shell: bash | ||
|
||
- uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: website | ||
|
||
- uses: actions/deploy-pages@v4 | ||
id: deployment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters