[nuget-skip] Define Python type hints to have no Optional by default #55
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
name: "Publish Nightly" | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
publish_nightly: | |
runs-on: ubuntu-latest | |
if: "!contains(format('{0} {1}', github.event.head_commit.message, github.event.pull_request.title), '[ci-skip]') && !contains(format('{0} {1}', github.event.head_commit.message, github.event.pull_request.title), '[nuget-skip]')" | |
steps: | |
- name: "Checkout" | |
uses: "actions/checkout@v4" | |
- name: "Setup .NET" | |
uses: "actions/setup-dotnet@v4" | |
with: | |
dotnet-version: 8.x | |
- name: Build | |
run: dotnet build -c Release | |
- name: Test | |
run: dotnet test --no-build -c Release | |
- name: Clean up | |
run: dotnet clean -c Release | |
- name: "Build Nightly Nuget Package" | |
run: | | |
mkdir build | |
cd ./Json2SharpLib | |
dotnet build -p:PackageId=Json2Sharp -p:AssemblyName=Json2Sharp -c Release | |
dotnet pack --include-symbols --include-source -p:SymbolPackageFormat=snupkg -p:PackageId=Json2Sharp -p:AssemblyName=Json2Sharp -p:VersionSuffix='nightly-0${{ github.run_number }}' -p:BuildNumber=0$(( ${{ github.run_number }} )) -c Release -o ../build | |
cd .. | |
- name: "Publish Nightly Nuget Package" | |
run: "dotnet nuget push \"build/*\" -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json" # If the package version does not comply with SemVer, it will be set as a pre-release version automatically. |