mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
40 lines
1.2 KiB
YAML
40 lines
1.2 KiB
YAML
name: Build Squirrel (Windows)
|
|
on: [push, pull_request]
|
|
jobs:
|
|
build:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Setup .NET
|
|
uses: actions/setup-dotnet@v1
|
|
with:
|
|
dotnet-version: 6.0.*
|
|
source-url: https://nuget.pkg.github.com/Clowd/index.json
|
|
env:
|
|
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
- name: "Install NGBV"
|
|
run: dotnet tool install --tool-path . nbgv
|
|
- name: Build
|
|
shell: pwsh
|
|
run: .\build.ps1
|
|
- name: Create NuGet Package
|
|
shell: pwsh
|
|
run: .\pack.ps1
|
|
- name: Test
|
|
run: dotnet test test\Squirrel.Tests.csproj -l "console;verbosity=detailed"
|
|
- name: "Upload Tools"
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
path: .\build\SquirrelTools*.zip
|
|
if-no-files-found: error
|
|
- name: "Upload NuGet Package"
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
path: .\build\Clowd.Squirrel*.nupkg
|
|
if-no-files-found: error
|
|
- name: Publish to GitHub Packages
|
|
if: {{ github.ref == 'ref/head/develop' }}
|
|
run: dotnet nuget push .\build\Clowd.Squirrel*.nupkg
|