Skip to content

Storage.Interface-4.0.11 #33

Storage.Interface-4.0.11

Storage.Interface-4.0.11 #33

Workflow file for this run

name: Pack and publish nugets
on:
release:
types:
- published
jobs:
build-pack:
if: startsWith(github.ref, 'refs/tags/Storage.Interface-')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
with:
dotnet-version: |
9.0.x
- name: Install deps
run: |
cd src/Storage.Interface
dotnet restore
- name: Build
run: |
cd src/Storage.Interface
dotnet build --configuration Release --no-restore -p:Deterministic=true -p:BuildNumber=${{ github.run_number }}
- name: Pack and publish Storage.Interface
run: |
cd src/Storage.Interface
dotnet pack --configuration Release --no-restore --no-build -p:BuildNumber=${{ github.run_number }} -p:Deterministic=true
dotnet nuget push bin/Release/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}