Skip to content

Merge pull request #12 from red-gate/gha/non-main #21

Merge pull request #12 from red-gate/gha/non-main

Merge pull request #12 from red-gate/gha/non-main #21

Workflow file for this run

name: CI Pipeline
on: [push, workflow_dispatch]
permissions:
id-token: write # required for hashicorp/vault-action to work
contents: read
jobs:
build:
name: Build, Sign and Publish
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up .NET
uses: actions/setup-dotnet@v5
- name: Build project
run: dotnet build --configuration Release
- name: Sign artifacts
uses: ./.github/actions/sign-artifacts
with:
artifacts: |
./CredentialManagement/bin/Release/netstandard2.0/RedGate.ThirdParty.CredentialManagement.Standard.dll
- name: Create the package
run: dotnet pack --configuration Release
- name: Publish to NuGet
if: github.ref == 'refs/heads/master'
uses: ./.github/actions/push-package
with:
path: ./CredentialManagement/bin/Release
package: RedGate.ThirdParty.CredentialManagement.Standard