Features/october pack 2 #66
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: pr-verification | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
build-extension: | |
runs-on: windows-latest | |
env: | |
DOTNET_NOLOGO: true | |
DOTNET_CLI_TELEMETRY_OPTOUT: true | |
RepositoryUrl: 'https://github.com/${{ github.repository }}' | |
RepositoryBranch: '${{ github.ref }}' | |
SourceRevisionId: '${{ github.sha }}' | |
VersionSuffix: 'pr-${{github.event.number}}.${{ github.run_number }}' | |
Configuration: Release | |
SolutionPath: ./src/ScriptRunner/ScriptRunner.sln | |
Deterministic: true | |
PackageReleaseNotes: 'https://github.com/${{ github.repository }}/releases' | |
ContinuousIntegrationBuild: true | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET Core 6 | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '6.0.108' | |
- name: Calculate next version | |
uses: cezarypiatek/[email protected] | |
with: | |
minor-pattern: '.*' | |
major-pattern: 'BREAKING CHANGES' | |
output-to-env-variable: 'VersionPrefix' | |
- name: Restore dependencies | |
run: | | |
dotnet nuget locals all --clear | |
dotnet restore $env:SolutionPath | |
- name: Build extension | |
run: dotnet publish $env:SolutionPath -r win-x64 -maxcpucount:1 -p:PublishSingleFile=true --self-contained false -p:PublishReadyToRun=true |