This repository was archived by the owner on Aug 29, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 1010 rid : ['win-x64', 'osx-x64', 'linux-x64']
1111 env :
1212 NUGET_URL : https://nuget.pkg.github.com/microsoft/index.json
13- VERSION : unversioned
13+ PACKAGE_VERSION : unversioned
1414 PACKAGE_TEMPLATE : msgraph-cli-{0}-{1}
1515 OUTPUT_DIR : /tmp/publish
1616 steps :
2020 uses : actions/setup-dotnet@v1
2121 with :
2222 dotnet-version : 6.x
23+ - name : Set version
24+ run : PACKAGE_VERSION=$(echo -e ${{github.ref_name}} | tr -d 'v')
2325 - name : Add NuGet kiota source
2426 # NOTE: Password encryption is not supported for the linux platform (Encryption is only supported on Windows platforms.)
2527 run : |
@@ -31,13 +33,10 @@ jobs:
3133 key : ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
3234 restore-keys : |
3335 ${{ runner.os }}-nuget
34- - name : Install dependencies
35- run : dotnet restore
3636 - name : Build
37- run : dotnet publish --runtime ${{matrix.rid}} --self-contained true --configuration Release --no-restore -- output ${{env.OUTPUT_DIR}}
37+ run : dotnet publish --runtime ${{matrix.rid}} --self-contained true --configuration Release --output ${{env.OUTPUT_DIR}}
3838 - name : Package
3939 run : |
40- VERSION=$(echo -e ${{github.ref_name}} | tr -d 'v')
41- zip format('${{env.PACKAGE_TEMPLATE}}.zip', '${{matrix.rid}}', $VERSION) ${{env.OUTPUT_DIR}}/*
40+ zip format('${{env.PACKAGE_TEMPLATE}}.zip', '${{matrix.rid}}', $PACKAGE_VERSION) ${{env.OUTPUT_DIR}}/*
4241 - name : Add to release
43- run : gh release upload ${{github.ref_name}} format('${{env.PACKAGE_TEMPLATE}}.zip', '${{matrix.rid}}', $VERSION ) --clobber
42+ run : gh release upload ${{github.ref_name}} format('${{env.PACKAGE_TEMPLATE}}.zip', '${{matrix.rid}}', $PACKAGE_VERSION ) --clobber
You can’t perform that action at this time.
0 commit comments