[CI] Add nuget beta build support (#3113)
This commit is contained in:
9
.github/workflows/dotnet.yml
vendored
9
.github/workflows/dotnet.yml
vendored
@@ -1,8 +1,5 @@
|
||||
name: Dotnet Build
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["dev"]
|
||||
@@ -35,6 +32,12 @@ jobs:
|
||||
- name: Is Tag Build
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
run: echo "IsTagBuild=true" >> $GITHUB_ENV
|
||||
|
||||
- name: Generate Beta Suffix
|
||||
if: startsWith(github.ref, 'refs/tags/') && contains(github.ref_name, '/')
|
||||
env:
|
||||
REF_NAME: ${{ github.ref_name }}
|
||||
run: echo "Suffix=${REF_NAME##*/}" >> $GITHUB_ENV
|
||||
|
||||
- name: Generate Suffix
|
||||
if: env.IsTagBuild != 'true'
|
||||
|
||||
Reference in New Issue
Block a user