Skip to content

Add package details

Add package details #1

Workflow file for this run

name: πŸš€ Release
on:
push:
tags:
- '1.*'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: πŸ“₯ Checkout
uses: actions/checkout@v4
- name: πŸ›  Install .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.x
9.x
10.x
- name: πŸ”„ Restore
run: dotnet restore ChilliCream.Snowflake.sln
- name: πŸ—οΈ Build
run: dotnet build ChilliCream.Snowflake.sln --configuration Release --no-restore
- name: βœ… Test
run: dotnet test ChilliCream.Snowflake.sln --configuration Release --no-build --logger trx
publish:
needs: test
runs-on: ubuntu-latest
steps:
- name: πŸ“₯ Checkout
uses: actions/checkout@v4
- name: πŸ›  Install .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.x
9.x
10.x
- name: πŸ’Ύ Restore
run: dotnet restore ChilliCream.Snowflake.sln
- name: πŸ—οΈ Build (Release)
run: dotnet build src/ChilliCream.Snowflake.csproj -c Release --no-restore
- name: πŸ“¦ Pack
run: |
VERSION=${GITHUB_REF#refs/tags/}
dotnet pack src/ChilliCream.Snowflake.csproj \
--configuration Release \
--no-build \
-p:PackageVersion=$VERSION \
-o ./artifacts
- name: πŸš€ Push to NuGet
run: dotnet nuget push ./artifacts/*.nupkg \
--api-key ${{ secrets.NUGET_API_KEY }} \
--source https://api.nuget.org/v3/index.json \
--skip-duplicate