Skip to content

Commit 3370285

Browse files
committed
Update build process for Octopus fork package push
1 parent 50d6978 commit 3370285

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,16 @@ jobs:
3232
retention-days: 7
3333
- name: Verify trimming compatibility
3434
run: dotnet publish TrimmingTestApp
35+
36+
- name: Push package to feed 🐙
37+
id: push-feed
38+
if: github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]' && github.event_name != 'schedule' && github.ref == 'refs/heads/octopus/master'
39+
shell: bash
40+
env:
41+
FEED_API_KEY: ${{ secrets.FEED_API_KEY }}
42+
FEED_SOURCE: ${{ secrets.FEED_SOURCE }}
43+
run: dotnet nuget push artifacts/**/*.nupkg --api-key "$FEED_API_KEY" --source "$FEED_SOURCE"
44+
3545
test:
3646
name: Test / ${{ matrix.os }} / ${{ matrix.arch }} / ${{ matrix.tfm }}
3747
runs-on: ${{ matrix.os }}

LibGit2Sharp/LibGit2Sharp.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
<PackageReadmeFile>App_Readme/README.md</PackageReadmeFile>
2020
<PackageLicenseFile>App_Readme/LICENSE.md</PackageLicenseFile>
2121
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
22+
<PackageId>Octopus.LibGit2Sharp</PackageId>
2223
<PackageOutputPath>$(ArtifactsPath)\package</PackageOutputPath>
23-
<MinVerDefaultPreReleaseIdentifiers>preview.0</MinVerDefaultPreReleaseIdentifiers>
24+
<MinVerDefaultPreReleaseIdentifiers>octopus.0</MinVerDefaultPreReleaseIdentifiers>
2425
<MinVerBuildMetadata Condition="'$(libgit2_hash)' != ''">libgit2-$(libgit2_hash.Substring(0,7))</MinVerBuildMetadata>
2526
</PropertyGroup>
2627

0 commit comments

Comments
 (0)