Log BlobNotFound exception #141
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: dotnet package | |
on: [push, pull_request, create] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
services: | |
azurite: | |
image: mcr.microsoft.com/azure-storage/azurite | |
ports: | |
- 10000:10000 | |
- 10001:10001 | |
# No simple reciept to curl it, so, let's just wait | |
options: >- | |
--health-cmd "sleep 5" | |
--health-interval 3s | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: "7.0.100" | |
- name: Install dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --configuration Release --no-restore | |
- name: Test | |
if: ${{ !env.ACT }} | |
run: dotnet test --no-restore --no-build --configuration Release AzureBatchQueue.Tests | |
- name: Get tag name | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') | |
id: vars | |
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/v} | |
- name: Build and push the package | |
if: steps.vars.outputs.tag != null | |
run: | | |
dotnet pack --no-restore --no-build --configuration Release --include-symbols --include-source -p:SymbolPackageFormat=snupkg -p:PackageVersion=${{ steps.vars.outputs.tag }} -o output/${{ steps.vars.outputs.tag }} AzureBatchQueue/ | |
dotnet nuget push output/${{ steps.vars.outputs.tag }}/*.nupkg --api-key ${{ secrets.NUGET_API_TOKEN }} --source https://api.nuget.org/v3/index.json |