Skip to content

Commit

Permalink
task: update ci/cd
Browse files Browse the repository at this point in the history
Signed-off-by: Alan Brault <alan.brault@visus.io>
  • Loading branch information
xaevik committed May 11, 2024
1 parent e8640d9 commit 617a0b0
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,13 @@ jobs:
name: Unit Tests
runs-on: ubuntu-latest
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_NOLOGO: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
show-progress: false
- name: NuGet Cache
uses: actions/cache@v3
with:
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,17 @@ on:
- '*'

jobs:
build:
name: Build, Analyze & Test
release:
name: Release
runs-on: ubuntu-latest
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_NOLOGO: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
show-progress: false
- name: NuGet Cache
uses: actions/cache@v3
with:
Expand All @@ -39,7 +37,6 @@ jobs:
uses: gittools/actions/gitversion/execute@v0.10.2
with:
useConfigFile: true
configFilePath: 'GitVersion.yaml'
- name: Restore
run: dotnet restore --verbosity Quiet
- name: Build
Expand Down
3 changes: 0 additions & 3 deletions GitVersion.yaml

This file was deleted.

8 changes: 8 additions & 0 deletions GitVersion.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
branches:
develop:
tag: beta
mode: ContinuousDeployment
release:
tag: rc
mode: ContinuousDeployment
assembly-file-versioning-format: '{Major}.{Minor}.{Patch}.{env:GITHUB_RUN_NUMBER ?? 0}'
2 changes: 1 addition & 1 deletion cuid.net.sln
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
ProjectSection(SolutionItems) = preProject
README.md = README.md
LICENSE = LICENSE
GitVersion.yaml = GitVersion.yaml
GitVersion.yml = GitVersion.yml
renovate.json = renovate.json
Directory.Build.props = Directory.Build.props
.gitignore = .gitignore
Expand Down

0 comments on commit 617a0b0

Please sign in to comment.