Skip to content

Commit

Permalink
Generate package on build
Browse files Browse the repository at this point in the history
  • Loading branch information
ninjarobot committed Dec 1, 2022
1 parent 630f5aa commit df29525
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/pack-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,9 @@ jobs:
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build -warnaserror --no-restore
run: VERSION=${GITHUB_REF##*/} dotnet build -warnaserror --no-restore -o . -c Release
- name: Test
run: dotnet test --no-build --verbosity normal
- name: Pack
run: VERSION=${GITHUB_REF##*/} dotnet pack -o . -c Release
- name: Publish nuget package
run: dotnet nuget push FSharp.Text.Docker.*.nupkg -s https://nuget.org -k ${{ secrets.NUGET_API_KEY }}
- name: Publish symbols package
Expand Down
1 change: 1 addition & 0 deletions src/FSharp.Text.Docker.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<IncludeSymbols>true</IncludeSymbols>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
</PropertyGroup>
<ItemGroup>
<Compile Include="Dockerfile.fs" />
Expand Down

0 comments on commit df29525

Please sign in to comment.