Skip to content

Commit

Permalink
Allow pre-releases (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewBenzSW authored Jul 16, 2024
1 parent b9193a3 commit 3b89b48
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@

name: CI

on: [push]
on:
push:
workflow_dispatch:

jobs:
dot_net_framework_test:
Expand Down Expand Up @@ -95,10 +97,16 @@ jobs:
nuget-deploy:
runs-on: ubuntu-latest
needs: [dot_net_framework_test, dot_net_core_test]
if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch'
steps:
# Checkout code if release was created
- uses: actions/checkout@v2

- uses: bbonkr/get-version-action@v1
id: get_version
with:
project: './ShipEngineSDK/ShipEngineSDK.csproj'
show_log_message: true

# Setup Dotnet if release was created
- name: Setup dotnet 8.0.x
Expand All @@ -109,6 +117,7 @@ jobs:
- name: publish on version change
id: publish_nuget
uses: alirezanet/[email protected]
if: github.ref == 'refs/heads/main' || (github.event_name == 'workflow_dispatch' && steps.get_version.outputs.pre-release != '')

with:
# Filepath of the project to be packaged, relative to root of repository
Expand All @@ -133,4 +142,4 @@ jobs:
NUGET_KEY: ${{secrets.NUGET_KEY}}

# Flag to toggle pushing symbols along with nuget package to the server, disabled by default
INCLUDE_SYMBOLS: false
INCLUDE_SYMBOLS: false

0 comments on commit 3b89b48

Please sign in to comment.