fix host container injection for async #297
Workflow file for this run
This file contains hidden or 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: build | |
| on: [push] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Setup .NET Core | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 8.0.101 | |
| - name: Set version variable | |
| run: | | |
| if [[ '${{ github.ref_type }}' == 'tag' ]]; then | |
| echo "NUGET_VERSION=$(echo ${GITHUB_REF#refs/tags/})" >> $GITHUB_ENV | |
| else | |
| echo "NUGET_VERSION=0.0.0" >> $GITHUB_ENV | |
| fi | |
| - name: Info | |
| run: echo 'Building ${{ github.ref }} with version ${{ env.NUGET_VERSION }}' | |
| - uses: actions/checkout@v4 | |
| - name: Build & Test | |
| run: make test config=Release version=${{ env.NUGET_VERSION }} | |
| - name: Pack | |
| run: make dist config=Release version=${{ env.NUGET_VERSION }} | |
| - name: Archive NuGet Outputs | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: nugets | |
| include-hidden-files: true | |
| path: .out/*.nupkg | |
| publish: | |
| if: github.ref_type == 'tag' | |
| environment: publish | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Info | |
| run: echo 'Building ${{ github.ref }}' | |
| - uses: actions/checkout@v4 | |
| - name: Download NuGet | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: nugets | |
| path: .out | |
| - name: Publish NuGet | |
| run: make publish nugetkey=${{secrets.NUGET_KEY}} |