Skip to content

Commit

Permalink
Drop NUKE_NUGET_VERSION_SUFFIX
Browse files Browse the repository at this point in the history
  • Loading branch information
Kielek committed Jul 21, 2023
1 parent e72ab69 commit 8455fcf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/build-nuget-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,30 +63,12 @@ jobs:
name: bin-macos-11
path: bin/ci-artifacts/bin-macos-11

- name: Set NUKE_NUGET_VERSION_SUFFIX for build triggered by 'tag'
id: set-nuget-version-suffix-from-tag
if: github.ref_type == 'tag'
shell: bash
run: echo "NUKE_NUGET_VERSION_SUFFIX=$(echo ${{ github.ref_name }} | sed -n 's/.*v[0-9]\+\.[0-9]\+\.[0-9]\+\(.*\)/\1/p')" >> "$GITHUB_ENV"

- name: Set NUKE_NUGET_VERSION_SUFFIX for regular build
id: set-nuget-version-suffix-from-run-id
if: github.ref_type != 'tag'
shell: bash
# See https://semver.org/spec/v2.0.0.html#spec-item-9 for valid version suffix
run: echo "NUKE_NUGET_VERSION_SUFFIX=-run-id.${{ github.run_id }}" >> "$GITHUB_ENV"

- name: Build NuGet packages
run: ./build.cmd BuildNuGetPackages

- name: Test NuGet Packages
run: ./build.cmd TestNuGetPackages

- name: Set NuGet Version Suffix
id: set-nuget-version-suffix
shell: bash
run: echo "suffix=${{ env.NUKE_NUGET_VERSION_SUFFIX }}" >> $GITHUB_OUTPUT

- name: Upload Nuget Artifacts
uses: actions/upload-artifact@v3.1.2
with:
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,5 @@ jobs:
name: bin-nuget-packages
path: bin/nuget-artifacts/

- name: Set NUKE_NUGET_VERSION_SUFFIX
id: set-nuget-version-suffix
run: echo "NUKE_NUGET_VERSION_SUFFIX=${{ needs.build-nuget-packages.outputs.nuget-version-suffix }}" >> "$GITHUB_ENV"

- name: Test NuGet Packages
run: ./build.cmd TestNuGetPackages

0 comments on commit 8455fcf

Please sign in to comment.