All Packages Release #61
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
name: All Packages Release | |
env: | |
OUTPUT: ./Output | |
CONFIG: Release | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '8.x.x' | |
include-prerelease: true | |
- name: Restore dependencies | |
run: dotnet restore ./src/SeoToolkit.Umbraco.sln | |
- name: Build | |
run: dotnet build ./src/SeoToolkit.Umbraco.sln --configuration ${{ env.CONFIG }} --no-restore | |
- name: Create NuGet packages | |
run: dotnet pack ./src/SeoToolkit.Umbraco.sln -c ${{ env.CONFIG }} --no-build -o ${{ env.OUTPUT }} | |
# - name: Push packages to NuGet | |
# run: dotnet nuget push "**/*.nupkg" -k ${{ secrets.NUGET_DEPLOY_KEY }} -s https://api.nuget.org/v3/index.json | |
- name: upload-artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Build-Results | |
path: ${{ env.OUTPUT }}/**/* |