Skip to content

Commit

Permalink
fix: OR-1955 add publish to nuget
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Lesage committed Oct 19, 2023
1 parent 47f48f0 commit d7379c6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Nightly Build

on:
schedule:
- cron: '59 11 * * *' # Runs every night at midnight UTC
- cron: '30 * * * *' # Runs every night at midnight UTC

jobs:

Expand Down
33 changes: 21 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -299,14 +299,34 @@ jobs:
echo RELEASE_VERSION=$(cat semver) >> $GITHUB_ENV
shell: bash

- name: debug_output
- name: Debug Output
shell: bash
run: |
echo 'BEGIN VERSION'
echo ${{ steps.set-version.outputs.version }}
echo 'END VERSION'
publish_to_nuget:
if: needs.release.outputs.version != 'none'
needs: [ release ]
name: Publish to Atlassian
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Setup nodejs
uses: ./.github/actions/setup-nodejs

- name: Publish to NuGet
shell: bash
run: |
node packages/Be.Vlaanderen.Basisregisters.Build.Pipeline/Content/ci-nuget.js dist/nuget/$LIBNAME.Api.$SEMVER.nupkg
env:
LIBNAME: Be.Vlaanderen.Basisregisters.OrganisationRegistry
SEMVER: ${{ needs.release.outputs.version }}
NUGET_HOST: ${{ secrets.NUGET_HOST }}
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}

publish_to_atlassian:
if: needs.release.outputs.version != 'none'
Expand Down Expand Up @@ -640,17 +660,6 @@ jobs:
SEMVER: ${{ needs.release.outputs.version }}
WORKSPACE: ${{ github.workspace }}

# - name: Publish to NuGet
# if: needs.release.outputs.version != 'none'
# shell: bash
# run: |
# node packages/Be.Vlaanderen.Basisregisters.Build.Pipeline/Content/ci-nuget.js dist/nuget/$LIBNAME.Api.$SEMVER.nupkg
# env:
# LIBNAME: Be.Vlaanderen.Basisregisters.OrganisationRegistry
# SEMVER: ${{ needs.release.outputs.version }}
# NUGET_HOST: ${{ secrets.NUGET_HOST }}
# NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}

deploy_staging:
needs:
- release
Expand Down

0 comments on commit d7379c6

Please sign in to comment.