Skip to content

Commit

Permalink
fix: pack shaperon.geometries
Browse files Browse the repository at this point in the history
  • Loading branch information
jvandaal authored and ArneD committed Mar 8, 2024
1 parent 81831a8 commit 7bbe2ad
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 3 deletions.
33 changes: 30 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
echo RELEASE_VERSION=$(cat semver) >> $GITHUB_ENV
shell: bash

pack:
pack-shaperon:
name: Pack
uses: Informatievlaanderen/build-pipeline/.github/workflows/pack.yml@main
needs: [ set-release-version ]
Expand All @@ -67,11 +67,24 @@ jobs:
dotnet-version: ${{ vars.VBR_DOTNET_VERSION_8 }}
secrets: inherit

pack-shaperon-geometries:
name: Pack
uses: Informatievlaanderen/build-pipeline/.github/workflows/pack.yml@main
needs: [ set-release-version ]
if: ${{ (github.repository_owner == 'Informatievlaanderen') && (needs.set-release-version.outputs.version != 'none') }}
with:
pack-file: Be.Vlaanderen.Basisregisters.Shaperon.Geometries
test-project: Be.Vlaanderen.Basisregisters.Shaperon.Tests
build-project: Be.Vlaanderen.Basisregisters.Shaperon.Geometries
semver: ${{ needs.set-release-version.outputs.version }}
dotnet-version: ${{ vars.VBR_DOTNET_VERSION_8 }}
secrets: inherit

release:
if: ${{ (github.repository_owner == 'Informatievlaanderen') && (needs.set-release-version.outputs.version != 'none') }}
name: Semantic Release
runs-on: ubuntu-latest
needs: [ set-release-version, pack ]
needs: [ set-release-version, pack-shaperon, pack-shaperon-geometries ]
outputs:
version: ${{ steps.set-version.outputs.version }}
steps:
Expand Down Expand Up @@ -126,13 +139,20 @@ jobs:
python -m pip install --upgrade pip
pip install requests markdown argparse
- name: Download NuGet
- name: Download NuGet Shaperon
uses: actions/download-artifact@v4
continue-on-error: false
with:
name: nuget-Be.Vlaanderen.Basisregisters.Shaperon-${{ needs.set-release-version.outputs.version }}
path: dist/nuget/

- name: Download NuGet Shaperon Geometries
uses: actions/download-artifact@v4
continue-on-error: false
with:
name: nuget-Be.Vlaanderen.Basisregisters.Shaperon.Geometries-${{ needs.set-release-version.outputs.version }}
path: dist/nuget/

- name: Run Semantic Release
shell: bash
run: npx semantic-release
Expand Down Expand Up @@ -180,10 +200,17 @@ jobs:
name: nuget-Be.Vlaanderen.Basisregisters.Shaperon-${{ needs.release.outputs.version }}
path: ~/

- name: Download NuGet package
uses: actions/download-artifact@v4
with:
name: nuget-Be.Vlaanderen.Basisregisters.Shaperon.Geometries-${{ needs.release.outputs.version }}
path: ~/

- name: Publish packages to NuGet
shell: bash
run: |
dotnet nuget push ~/Be.Vlaanderen.Basisregisters.Shaperon.$SEMVER.nupkg --source nuget.org --api-key $NUGET_API_KEY
dotnet nuget push ~/Be.Vlaanderen.Basisregisters.Shaperon.Geometries.$SEMVER.nupkg --source nuget.org --api-key $NUGET_API_KEY
env:
SEMVER: ${{ needs.release.outputs.version }}
WORKSPACE: ${{ github.workspace }}
Expand Down
21 changes: 21 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7bbe2ad

Please sign in to comment.