perf: Cleanup allocations + missing ConfigureAwait's (#124) #89
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: Run Release Release | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
release-package: | |
runs-on: windows-latest | |
steps: | |
- uses: google-github-actions/release-please-action@v3 | |
id: release | |
with: | |
command: manifest | |
token: ${{secrets.GITHUB_TOKEN}} | |
default-branch: main | |
- uses: actions/checkout@v4 | |
if: ${{ steps.release.outputs.releases_created }} | |
with: | |
fetch-depth: 0 | |
submodules: recursive | |
- name: Install dependencies | |
if: ${{ steps.release.outputs.releases_created }} | |
run: dotnet restore | |
- name: Build | |
if: ${{ steps.release.outputs.releases_created }} | |
run: | | |
dotnet build --configuration Release --no-restore -p:Deterministic=true | |
- name: Pack | |
if: ${{ steps.release.outputs.releases_created }} | |
run: | | |
dotnet pack --configuration Release --no-build | |
- name: Publish to Nuget | |
if: ${{ steps.release.outputs.releases_created }} | |
run: | | |
dotnet nuget push --skip-duplicate "**/*.nupkg" --source https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_TOKEN}} |