Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Rename environments #1152

Merged
merged 1 commit into from
Jan 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/deploy-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -18,8 +18,8 @@ on:
required: true

concurrency:
group: nuget-deployer
cancel-in-progress: false
group: package-deployer
cancel-in-progress: true

jobs:
build:
Expand Down Expand Up @@ -140,23 +140,23 @@ 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
nuget push NuGet/*.nupkg -src nuget -NonInteractive -ConfigFile nuget.config -Verbosity Detailed

- 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.
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest

environment:
name: docs-website
name: stockindicators.dev

steps:
- name: Checkout source
Expand Down Expand Up @@ -58,4 +58,4 @@ jobs:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: ${{ vars.CLOUDFLARE_PROJECT_NAME }}
directory: docs/_site
wranglerVersion: 'latest'
wranglerVersion: 'latest'
Loading