-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
62 additions
and
0 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,48 @@ | ||
name: Build and publish Terminal.Gui v2 API docs | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
|
||
permissions: | ||
id-token: write | ||
pages: write | ||
|
||
jobs: | ||
deploy: | ||
name: Build and Deploy API docs to github-pages | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup DocFX | ||
uses: crazy-max/ghaction-chocolatey@v2 | ||
with: | ||
args: install docfx | ||
|
||
- name: DocFX Build | ||
working-directory: docfx | ||
run: | | ||
git clone https://github.com/gui-cs/Terminal.Gui.git | ||
cd Terminal.Gui | ||
git checkout v2_develop | ||
docfx ./docfx/docfx.json build | ||
continue-on-error: false | ||
|
||
- name: Setup Pages | ||
uses: actions/configure-pages@v3 | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
path: ./Terminal.Gui/docfx/_site | ||
|
||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v2 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} |
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