Skip to content

Added publish docs

Added publish docs #50

name: publish-preview
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- run: sed -i 's/" PrivateAssets/-preview.${{ github.run_id }}" PrivateAssets/g' Piral.Blazor.Sdk/Sdk/Sdk.targets
working-directory: src
- run: dotnet build -c Release --version-suffix preview.${{ github.run_id }}
working-directory: src
- name: Publish packages
run: dotnet nuget push */bin/Release/*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json
working-directory: src
env:
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_TOKEN }}