Skip to content

Commit

Permalink
Web api (#201)
Browse files Browse the repository at this point in the history
When we release a new version of DotPulsar we would like to build the web API and deploy it to GitHub pages.

---------

Co-authored-by: David Jensen <[email protected]>
Co-authored-by: tison <[email protected]>
  • Loading branch information
3 people authored Jan 24, 2024
1 parent 5f01ede commit 2724496
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .asf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
github:
description: "The official .NET client library for Apache Pulsar"
homepage: https://pulsar.apache.org/
ghp_branch: gh-pages
ghp_path: /docs
labels:
- pulsar
- pubsub
Expand Down Expand Up @@ -47,5 +49,4 @@ notifications:
commits: [email protected]
issues: [email protected]
pullrequests: [email protected]
discussions: [email protected]
jira_options: link label
discussions: [email protected]
29 changes: 28 additions & 1 deletion .github/workflows/publish-to-nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,31 @@ jobs:
- name: Publish the package to nuget.org
run: dotnet nuget push src/DotPulsar/bin/Release/*.nupkg --api-key $NUGET_AUTH_TOKEN --source https://api.nuget.org/v3/index.json
env:
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_KEY }}
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_KEY }}

build-web-api:
timeout-minutes: 30
needs: build
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Check Out
uses: actions/checkout@v3

- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'

- name: Build docs with docfx
run: |
dotnet tool update -g docfx
dotnet build -p:TargetFramework=net8.0
docfx docs/api/docfx.json
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs

0 comments on commit 2724496

Please sign in to comment.