Skip to content

v.1.1.2

v.1.1.2 #6

Workflow file for this run

on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
branches:
- master
env:
PROJECT_NAME: AutoDbSet
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.x'
- name: Build
run: dotnet build --configuration Release
- name: Pack
run: dotnet pack --configuration Release --no-build --output ./artifacts
- name: Get version
uses: kzrnm/get-net-sdk-project-versions-action@v2
id: get-version
with:
proj-path: ${{ env.PROJECT_NAME }}/${{ env.PROJECT_NAME }}.csproj
- name: Push
run: dotnet nuget push ./artifacts/Atulin.${{ env.PROJECT_NAME }}.${{steps.get-version.outputs.package-version}}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_KEY }} --skip-duplicate