Skip to content

Commit a523ee1

Browse files
authored
Merge pull request #12 from red-gate/gha/non-main
Run the workflow on branches except for the publish step
2 parents 6ff3813 + d669dad commit a523ee1

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/ci-pipeline.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
name: CI Pipeline
2-
on:
3-
push:
4-
branches: [ master ]
5-
workflow_dispatch:
2+
on: [push, workflow_dispatch]
63

74
permissions:
85
id-token: write # required for hashicorp/vault-action to work
96
contents: read
107

118
jobs:
129
build:
10+
name: Build, Sign and Publish
1311
runs-on: windows-latest
1412
steps:
1513
- name: Checkout repository
@@ -31,6 +29,7 @@ jobs:
3129
run: dotnet pack --configuration Release
3230

3331
- name: Publish to NuGet
32+
if: github.ref == 'refs/heads/master'
3433
uses: ./.github/actions/push-package
3534
with:
3635
path: ./CredentialManagement/bin/Release

CredentialManagement/CredentialManagement.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<Copyright>Copyright © Red Gate Software Ltd 2019</Copyright>
1414
<PackageProjectUrl>https://github.com/red-gate/Redgate.ThirdParty.CredentialManagement.Standard</PackageProjectUrl>
1515
<RepositoryUrl>https://github.com/red-gate/Redgate.ThirdParty.CredentialManagement.Standard</RepositoryUrl>
16-
<PackageVersion>1.0.10.1</PackageVersion>
16+
<PackageVersion>1.0.10.2</PackageVersion>
1717
</PropertyGroup>
1818

1919
<ItemGroup>

0 commit comments

Comments
 (0)