Skip to content

chore(main): release 3.1.4 #31

chore(main): release 3.1.4

chore(main): release 3.1.4 #31

Workflow file for this run

name: Build and release
on:
push:
tags:
- v*
jobs:
build:
name: Build and release
runs-on: ubuntu-latest
permissions:
id-token: write # enable GitHub OIDC token issuance for trusted publishing
contents: read
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup .NET 10
uses: actions/setup-dotnet@baa11fbfe1d6520db94683bd5c7a3818018e4309 # v5.1.0
with:
dotnet-version: 10.0.*
- name: Restore dotnet
run: dotnet restore
- name: Build dotnet
run: dotnet build --no-restore
- name: Docker meta
id: meta
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5.10.0
with:
flavor: |
latest=false
sep-tags: ";"
tags: |
type=ref,event=branch
type=semver,pattern={{version}}
- name: Pack .NET project
run: dotnet pack Intility.Logging.sln -o Intility.Logging/output --property:Version=${{ steps.meta.outputs.tags }}
# Get a short-lived NuGet API key
- name: NuGet login
uses: NuGet/login@d22cc5f58ff5b88bf9bd452535b4335137e24544 # v1.1.0
id: login
with:
user: ${{ secrets.NUGET_USER }}
- name: Publish to NuGet
run: dotnet nuget push Intility.Logging/output/*.nupkg --skip-duplicate --api-key ${{ steps.login.outputs.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json