Publish Packages #63
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#https://lukelowrey.com/use-github-actions-to-publish-nuget-packages/ | |
name: Publish Packages | |
on: | |
# push: | |
# branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
HUSKY: 0 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 7.0.x | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --configuration Release --no-restore | |
- name: Test | |
run: dotnet test --configuration Release --no-build --verbosity normal | |
- name: Publish Gridify | |
uses: alirezanet/[email protected] | |
with: | |
PROJECT_FILE_PATH: src/Gridify/Gridify.csproj | |
INCLUDE_SYMBOLS: true | |
NUGET_KEY: ${{secrets.NUGET_API_KEY}} | |
- name: Publish Gridify.EntityFramework | |
uses: alirezanet/[email protected] | |
with: | |
PROJECT_FILE_PATH: src/Gridify.EntityFramework/Gridify.EntityFramework.csproj | |
INCLUDE_SYMBOLS: true | |
NUGET_KEY: ${{secrets.NUGET_API_KEY}} |