Thanks to visit codestin.com
Credit goes to github.com

Skip to content

v2.4.4

v2.4.4 #39

Workflow file for this run

name: Publish Packages to Nuget
on:
release:
types: [published]
jobs:
publish:
name: Pack and Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set VERSION variable from tag
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
- name: Echo VERSION variable
run: echo ${VERSION}
- name: Package WillSoss.DbDeploy
run: dotnet pack WillSoss.DbDeploy/WillSoss.DbDeploy.csproj -c Release -o feeds/nuget /p:Version=${VERSION}
- name: Package WillSoss.DbDeploy.Sql
run: dotnet pack WillSoss.DbDeploy.Sql/WillSoss.DbDeploy.Sql.csproj -c Release -o feeds/nuget /p:Version=${VERSION}
- name: Push to Nuget
run: find feeds/nuget -name '*.nupkg' | xargs -i dotnet nuget push {} -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }}