diff --git a/.github/workflows/pack.yml b/.github/workflows/pack.yml index 6ca0915..3d50d62 100644 --- a/.github/workflows/pack.yml +++ b/.github/workflows/pack.yml @@ -37,6 +37,19 @@ jobs: - uses: dotnet/nbgv@v0.4 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/docfx-action@v3.4.2 + 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 @@ -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: