From a90e963d6e27a6c7715740e335d80f03b6463ce0 Mon Sep 17 00:00:00 2001 From: Benjamin Soddy Date: Fri, 22 Nov 2024 17:29:27 -0600 Subject: [PATCH] fix: publish --- .github/workflows/publish.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f6524d6..5f9d724 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,15 +10,18 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Version - run: echo "VERSION=${GITHUB_REF:10}+${GITHUB_SHA::8}" >> $GITHUB_ENV - name: Test uses: devcontainers/ci@v0.3 with: push: never runCmd: dotnet test - - name: Publish - uses: devcontainers/ci@v0.3 + - name: Version + run: echo "VERSION=${GITHUB_REF:10}+${GITHUB_SHA::8}" >> $GITHUB_ENV + - name: Setup + uses: actions/setup-dotnet@v4 with: - push: never - runCmd: dotnet build -c Release && dotnet nuget push "**/*.nupkg" -k ${{ secrets.NUGET_KEY }} -n -s https://api.nuget.org/v3/index.json --skip-duplicate \ No newline at end of file + dotnet-version: 9 + - name: Build + run: dotnet build -c Release + - name: Publish + run: dotnet nuget push "**/*.nupkg" -k ${{ secrets.NUGET_KEY }} -n -s https://api.nuget.org/v3/index.json --skip-duplicate \ No newline at end of file