From 86d782a5f2943a756781b8320fb04323a711653f Mon Sep 17 00:00:00 2001 From: Dave Skender <8432125+DaveSkender@users.noreply.github.com> Date: Sat, 27 Jan 2024 17:36:28 -0500 Subject: [PATCH] update environment names --- .github/workflows/deploy-package.yml | 18 +++++++++--------- .github/workflows/docs-deploy.yml | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/deploy-package.yml b/.github/workflows/deploy-package.yml index c4f78e5b2..e8b565fc8 100644 --- a/.github/workflows/deploy-package.yml +++ b/.github/workflows/deploy-package.yml @@ -7,9 +7,9 @@ on: description: Deployment environment type: choice options: - - azure-artifacts - - nuget - default: azure-artifacts + - staging + - nuget.org + default: staging required: true preview: description: Append preview suffix @@ -18,8 +18,8 @@ on: required: true concurrency: - group: nuget-deployer - cancel-in-progress: false + group: package-deployer + cancel-in-progress: true jobs: build: @@ -140,15 +140,15 @@ jobs: name: packages path: NuGet - - name: Publish to Azure Artifacts - if: inputs.environment == 'azure-artifacts' + - name: Publish to Azure Artifacts (staging) + if: inputs.environment == 'staging' run: | dotnet new nugetconfig --force nuget sources Add -Name "AzureArtifacts" -Source ${{ vars.NUGET_PUBLISH_URL }} -UserName DaveSkender -Password ${{ secrets.NUGET_TOKEN }} -NonInteractive -ConfigFile nuget.config nuget push NuGet/*.nupkg -src AzureArtifacts -ApiKey AZ -NonInteractive -ConfigFile nuget.config - name: Publish to NuGet.org - if: inputs.environment == 'nuget' + if: inputs.environment == 'nuget.org' run: | dotnet new nugetconfig --force nuget setApiKey ${{ secrets.NUGET_TOKEN }} -src nuget -ConfigFile nuget.config @@ -156,7 +156,7 @@ jobs: - name: Tag and draft release note uses: ncipollo/release-action@v1 - if: inputs.environment == 'nuget' + if: inputs.environment == 'nuget.org' with: body: | We’ve released a new Stock Indicators for .NET NuGet package. diff --git a/.github/workflows/docs-deploy.yml b/.github/workflows/docs-deploy.yml index f6b1a19d1..5fafe12a8 100644 --- a/.github/workflows/docs-deploy.yml +++ b/.github/workflows/docs-deploy.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest environment: - name: docs-website + name: stockindicators.dev steps: - name: Checkout source @@ -58,4 +58,4 @@ jobs: accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} projectName: ${{ vars.CLOUDFLARE_PROJECT_NAME }} directory: docs/_site - wranglerVersion: 'latest' \ No newline at end of file + wranglerVersion: 'latest'