diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7237ca7..afa8679 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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: diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 68babec..670eed8 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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: @@ -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 diff --git a/GitVersion.yaml b/GitVersion.yaml deleted file mode 100644 index 344a029..0000000 --- a/GitVersion.yaml +++ /dev/null @@ -1,3 +0,0 @@ -mode: ContinuousDelivery -next-version: 1.0.0 -assembly-file-versioning-format: '{Major}.{Minor}.{Patch}.{env:REVISION ?? 0}' \ No newline at end of file diff --git a/GitVersion.yml b/GitVersion.yml new file mode 100644 index 0000000..ffc9551 --- /dev/null +++ b/GitVersion.yml @@ -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}' diff --git a/cuid.net.sln b/cuid.net.sln index 4a8be01..245ded0 100644 --- a/cuid.net.sln +++ b/cuid.net.sln @@ -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