Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ on:
- '[0-9]+.[0-9]+.[0-9]+-*'
pull_request:
workflow_dispatch:
inputs:
nightly:
description: 'Build as nightly version'
required: false
type: boolean
default: false
schedule:
- cron: '0 15 * * *' # Run at 3 PM UTC (1 AM Melbourne AEST / 2 AM AEDT)
env:
DOTNET_NOLOGO: true
jobs:
Expand All @@ -22,6 +30,15 @@ jobs:
uses: actions/setup-dotnet@v4.0.0
with:
dotnet-version: 9.0.x
- name: Set nightly version
if: github.event_name == 'schedule' || inputs.nightly
run: |
$version = & dotnet minver --verbosity quiet
if ($version -match '^(\d+\.\d+\.\d+)') {
$baseVersion = $matches[1]
echo "MINVER_VERSION_OVERRIDE=$baseVersion-octopus-nightly-${{ github.run_number }}" >> $env:GITHUB_ENV
}
shell: pwsh
- name: Build
run: dotnet build LibGit2Sharp.sln --configuration Release
- name: Upload packages
Expand Down
Loading