Skip to content

Commit

Permalink
Publish docs as part of the pack workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
georg-jung committed Jan 30, 2025
1 parent f7f8988 commit 880de3a
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/pack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,19 @@ jobs:
- uses: dotnet/[email protected]
id: nbgv

- run: dotnet restore src/FastBertTokenizer/FastBertTokenizer.csproj /p:ContinuousIntegrationBuild=true
- run: dotnet build src/FastBertTokenizer/FastBertTokenizer.csproj -c Release --no-restore /p:ContinuousIntegrationBuild=true

- uses: actions/upload-artifact@v4
with:
name: FastBertTokenizer-docs-${{ steps.nbgv.outputs.Version }}
path: docfx/_site/**/*

- uses: nunit/[email protected]
name: docfx
with:
args: docfx/docfx.json

# Remove the html head with the logo from README for nupkg
- id: clean-readme
uses: sean0x42/markdown-extract@v2
Expand All @@ -49,9 +62,6 @@ jobs:
write-mode: overwrite
contents: ${{ steps.clean-readme.outputs.markdown }}

- run: dotnet restore src/FastBertTokenizer/FastBertTokenizer.csproj /p:ContinuousIntegrationBuild=true
- run: dotnet build src/FastBertTokenizer/FastBertTokenizer.csproj -c Release --no-restore /p:ContinuousIntegrationBuild=true

- run: dotnet pack src/FastBertTokenizer/FastBertTokenizer.csproj -c Release --no-restore --no-build /p:ContinuousIntegrationBuild=true
- uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 880de3a

Please sign in to comment.