Skip to content

more changes and bumped main package to 0.0.2 #2

more changes and bumped main package to 0.0.2

more changes and bumped main package to 0.0.2 #2

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: Publish MagicLink library to nuget
on:
push:
paths:
- src/Muljin.B2CMagicLink/Muljin.B2CMagicLink/*.csproj
- .github/workflows/magiclink.yml
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
environment: Production
steps:
- uses: actions/checkout@v2
- name: Set up .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.x'
include-prerelease: true
- name: Pack with dotnet
run: dotnet pack --configuration Release -o ./out
working-directory: ./src/Muljin.B2CMagicLink/Muljin.B2CMagicLink
- name: Push to nuget
run: dotnet nuget push *.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}
working-directory: ./src/Muljin.B2CMagicLink/Muljin.B2CMagicLink/out