Skip to content

Commit cdb24e5

Browse files
Fix scripts
1 parent afd0939 commit cdb24e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/publish-restclient.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ jobs:
3434
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
3535
run: |
3636
VERSION=${GITHUB_REF#refs/tags/restclient-v}
37-
echo "PACKAGE_VERSION=$VERSION" >> $GITHUB_ENV
37+
echo "REST_CLIENT_DOTNET_VERSION=$VERSION" >> $GITHUB_ENV
3838
3939
- name: Set version from input
4040
if: github.event_name == 'workflow_dispatch'
4141
run: |
42-
echo "PACKAGE_VERSION=${{ github.event.inputs.version }}" >> $GITHUB_ENV
42+
echo "REST_CLIENT_DOTNET_VERSION=${{ vars.REST_CLIENT_DOTNET_VERSION }}" >> $GITHUB_ENV
4343
4444
- name: Pack
45-
run: dotnet pack RestClient.Net/RestClient.Net.csproj --configuration Release --no-build --output ./packages /p:Version=${{ env.PACKAGE_VERSION }}
45+
run: dotnet pack RestClient.Net/RestClient.Net.csproj --configuration Release --no-build --output ./packages /p:Version=${{ env.REST_CLIENT_DOTNET_VERSION }}
4646

4747
- name: Publish to NuGet
4848
run: dotnet nuget push ./packages/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate

0 commit comments

Comments
 (0)