-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b9193a3
commit 3b89b48
Showing
1 changed file
with
12 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,9 @@ | |
|
||
name: CI | ||
|
||
on: [push] | ||
on: | ||
push: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
dot_net_framework_test: | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 |