Bump Microsoft.EntityFrameworkCore.Sqlite from 10.0.2 to 10.0.4 #373
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: .NET | |
| on: | |
| push: | |
| branches: [ master ] | |
| create: | |
| tags: | |
| - '*.*.*' | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v3 | |
| with: | |
| dotnet-version: 10.0.x | |
| - name: Check Tag | |
| id: check-tag | |
| run: | | |
| if [[ v${{ github.event.ref }} =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then | |
| echo "match=true" >> $GITHUB_OUTPUT | |
| fi | |
| - name: Run Unit Tests | |
| run: | | |
| dotnet restore | |
| dotnet build | |
| dotnet test test/NosCore.PathFinder.Tests -v m | |
| - name: Build Artifact | |
| if: steps.check-tag.outputs.match == 'true' | |
| id: build_artifact | |
| run: | | |
| dotnet restore | |
| dotnet build -c Release | |
| dotnet pack -c Release -o /tmp/nupkgs -v m -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg | |
| dotnet nuget push /tmp/nupkgs/NosCore.PathFinder.${{github.event.ref}}.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} | |
| echo "ARTIFACT_PATH=/tmp/nupkgs/NosCore.PathFinder.${{github.event.ref}}.nupkg" >> $GITHUB_OUTPUT | |
| echo "ARTIFACT_NAME=NosCore.PathFinder.${{github.event.ref}}.nupkg" >> $GITHUB_OUTPUT | |
| - name: Gets Latest Release | |
| if: steps.check-tag.outputs.match == 'true' | |
| id: latest_release_info | |
| uses: jossef/action-latest-release-info@v1.1.0 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }} | |
| - name: Upload Release Asset | |
| if: steps.check-tag.outputs.match == 'true' | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }} | |
| with: | |
| upload_url: ${{ steps.latest_release_info.outputs.upload_url }} | |
| asset_path: ${{ steps.build_artifact.outputs.ARTIFACT_PATH }} | |
| asset_name: ${{ steps.build_artifact.outputs.ARTIFACT_NAME }} | |
| asset_content_type: application/zip |