Skip to content

Commit

Permalink
Refactor CD pipeline to include version tags in the trigger and remov…
Browse files Browse the repository at this point in the history
…e unnecessary tag fetching step
  • Loading branch information
hootanht committed Sep 12, 2024
1 parent 33698e4 commit b049bcd
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,28 @@ defaults:
shell: pwsh

jobs:
build:
# Specify the type of runner to use. In this case, the latest macOS environment.
runs-on: macos-latest

steps:
# Step 1: Check out the repository to the runner.
- uses: actions/checkout@v4

# Step 2: Set up the .NET environment using the setup-dotnet action.
- name: Setup .NET
uses: actions/setup-dotnet@v4

# Step 3: Restore the project's dependencies specified in the project file.
- name: Restore dependencies
run: dotnet restore

# Step 4: Build the project in Release configuration.
- name: Build
run: dotnet build --configuration Release

create_nuget:
needs: [ build ]
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -69,6 +90,7 @@ jobs:

run_test:
runs-on: macos-latest
needs: [ build ]
steps:
- uses: actions/checkout@v4
- name: Setup .NET
Expand Down

0 comments on commit b049bcd

Please sign in to comment.