Skip to content

Storage.Interface-4.0.5 #27

Storage.Interface-4.0.5

Storage.Interface-4.0.5 #27

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@v4
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.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 }}