From 958551b0cfd8fc6744c4e2e6ab35efef03682c81 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 14 Jul 2025 07:04:41 +0000 Subject: [PATCH 1/3] Bump gittools/actions from 3.2.1 to 4.0.1 Bumps [gittools/actions](https://github.com/gittools/actions) from 3.2.1 to 4.0.1. - [Release notes](https://github.com/gittools/actions/releases) - [Changelog](https://github.com/GitTools/actions/blob/main/GitReleaseManager.yml) - [Commits](https://github.com/gittools/actions/compare/v3.2.1...v4.0.1) --- updated-dependencies: - dependency-name: gittools/actions dependency-version: 4.0.1 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/determine-version.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/determine-version.yml b/.github/workflows/determine-version.yml index 64b8a617..c5389c34 100644 --- a/.github/workflows/determine-version.yml +++ b/.github/workflows/determine-version.yml @@ -65,14 +65,14 @@ jobs: fetch-depth: 0 - name: 'Setup GitVersion ${{ env.git-version }}' - uses: gittools/actions/gitversion/setup@v3.2.1 + uses: gittools/actions/gitversion/setup@v4.0.1 with: versionSpec: ${{ inputs.gitversion-version }} preferLatestVersion: true - name: 'Determine version' id: gitversion - uses: gittools/actions/gitversion/execute@v3.2.1 + uses: gittools/actions/gitversion/execute@v4.0.1 with: useConfigFile: true configFilePath: ${{ inputs.config-file-path }} From eecb48f5e502e03a5561ad4abfaa01392ee20cfa Mon Sep 17 00:00:00 2001 From: Pete Sramek Date: Wed, 30 Jul 2025 21:56:16 +0200 Subject: [PATCH 2/3] bumped version to 6.1.x --- .github/workflows/determine-version.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/determine-version.yml b/.github/workflows/determine-version.yml index c5389c34..d4ed17ca 100644 --- a/.github/workflows/determine-version.yml +++ b/.github/workflows/determine-version.yml @@ -19,10 +19,10 @@ on: required: false default: '9.0.x' gitversion-version: - description: 'Version of GitVersion to use. Default: ''6.0.x''.' + description: 'Version of GitVersion to use. Default: ''6.1.x''.' required: false type: string - default: '6.0.x' + default: '6.1.x' prerelease-tag: description: 'The prerelease tag to use. Default: ''''.' type: string From 528f778dc16ee42f2a8e21eac3419bbdf927b225 Mon Sep 17 00:00:00 2001 From: Pete Sramek Date: Wed, 30 Jul 2025 21:59:03 +0200 Subject: [PATCH 3/3] removed useConfigFile: true --- .github/workflows/determine-version.yml | 1 - .github/workflows/publish-documentation.yml | 56 +++++++++++++++++++++ 2 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/publish-documentation.yml diff --git a/.github/workflows/determine-version.yml b/.github/workflows/determine-version.yml index d4ed17ca..758484d1 100644 --- a/.github/workflows/determine-version.yml +++ b/.github/workflows/determine-version.yml @@ -74,7 +74,6 @@ jobs: id: gitversion uses: gittools/actions/gitversion/execute@v4.0.1 with: - useConfigFile: true configFilePath: ${{ inputs.config-file-path }} - name: 'Set friendly version' diff --git a/.github/workflows/publish-documentation.yml b/.github/workflows/publish-documentation.yml new file mode 100644 index 00000000..c89ffd1a --- /dev/null +++ b/.github/workflows/publish-documentation.yml @@ -0,0 +1,56 @@ +name: 'Publish Documentation' + +on: + workflow_dispatch: + push: + branches: + - 'docs' + paths: + - 'docs/**' + +jobs: + release-package: + name: ${{ inputs.environment }} + runs-on: ubuntu-latest + + env: + working-directory: '/packages/${{ github.run_id }}-${{ github.run_attempt }}' + + environment: + name: ${{ inputs.environment }} + + steps: + + - if: ${{ !(inputs.nuget-feed-server == 'NuGet' || inputs.nuget-feed-server == 'AzureArtifacts') }} + name: 'Invalid NuGet feed server type' + shell: bash + run: | + echo 'Invalid NuGet feed server type ${{ inputs.nuget-feed-server }}. Allowed values are 'NuGet' or 'AzureArtifacts'.' + exit 1 + + - name: 'Setup .NET ${{ inputs.dotnet-sdk-version }}' + uses: actions/setup-dotnet@v4 + with: + dotnet-version: ${{ inputs.dotnet-sdk-version }} + + - name: 'Download artifact' + uses: actions/download-artifact@v4 + with: + run-id: ${{ inputs.artifact-run-id }} + name: ${{ inputs.artifact-name }} + path: ${{ runner.temp }}/${{ env.working-directory }} + + - if: ${{ inputs.nuget-feed-server == 'NuGet' }} + name: 'Publish package to NuGet' + shell: bash + run: | + dotnet nuget push **/*.nupkg --source ${{ vars.NUGET_PACKAGE_FEED_URL }} --api-key ${{ secrets.NUGET_PACKAGE_FEED_API_KEY }} + working-directory: ${{ runner.temp }}/${{ env.working-directory }} + + - if: ${{ inputs.nuget-feed-server == 'AzureArtifacts' }} + name: 'Publish package to Azure Artifacts' + shell: bash + run: | + dotnet nuget add source ${{ vars.NUGET_PACKAGE_FEED_URL }} --name nuget-feed --username username --password ${{ secrets.NUGET_PACKAGE_FEED_API_KEY }} --store-password-in-clear-text + dotnet nuget push **/*.nupkg --source nuget-feed --api-key ${{ secrets.NUGET_PACKAGE_FEED_API_KEY }} --skip-duplicate + working-directory: ${{ runner.temp }}/${{ env.working-directory }} \ No newline at end of file