File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -12,28 +12,26 @@ jobs:
12
12
BUILD_CONFIG : ' Release'
13
13
14
14
steps :
15
- - name : Dump env
16
- run : env | sort
17
- - name : Dump GitHub context
18
- env :
19
- GITHUB_CONTEXT : ${{ toJson(github) }}
20
- run : echo "$GITHUB_CONTEXT"
15
+ # - name: Dump env
16
+ # run: env | sort
17
+ # - name: Dump GitHub context
18
+ # env:
19
+ # GITHUB_CONTEXT: ${{ toJson(github) }}
20
+ # run: echo "$GITHUB_CONTEXT"
21
21
- uses : actions/checkout@v3
22
22
- name : Setup .NET
23
23
uses : actions/setup-dotnet@v3
24
24
with :
25
25
dotnet-version : 6.0.x
26
- - name : Set VERSION variable from tag
27
- run : echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
28
26
- name : Build
29
27
working-directory : ./src
30
- run : dotnet build /p:Version=${VERSION }
28
+ run : dotnet build /p:Version=${{ github.event.release.tag_name } }
31
29
- name : Test
32
30
working-directory : ./src
33
- run : dotnet test /p:Version=${VERSION } --no-build
31
+ run : dotnet test /p:Version=${{ github.event.release.tag_name } } --no-build
34
32
- name : Pack
35
33
working-directory : ./src
36
- run : dotnet pack /p:Version=${VERSION } --no-build --output .
34
+ run : dotnet pack /p:Version=${{ github.event.release.tag_name } } --no-build --output .
37
35
- uses : actions/upload-artifact@v3
38
36
if : success() || failure()
39
37
with :
You can’t perform that action at this time.
0 commit comments