Skip to content

Commit fb337ab

Browse files
committed
upgrade deprecated github actions
1 parent a7828a1 commit fb337ab

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ jobs:
1919
build:
2020
runs-on: ubuntu-latest
2121
steps:
22-
- uses: actions/checkout@v2
22+
- uses: actions/checkout@v4
2323
with:
2424
ref: ${{ github.ref }} # This checks out the commit that triggered the workflow run
2525

2626
- name: Setup .NET
27-
uses: actions/setup-dotnet@v1
27+
uses: actions/setup-dotnet@v4
2828
with:
2929
dotnet-version: '8.0.x'
3030

@@ -51,29 +51,29 @@ jobs:
5151
run: Npgmq.Test/scripts/run-tests.sh 0.31.0
5252

5353
- name: Pack
54-
if: startsWith(github.ref, 'refs/tags/v')
54+
#if: startsWith(github.ref, 'refs/tags/v')
5555
run: dotnet pack Npgmq/Npgmq.csproj --no-build --configuration Release /p:PackageVersion=${{ env.VERSION }} /p:CopyrightYear=$(date +%Y) --output out
5656

57-
- uses: actions/upload-artifact@v2
58-
if: startsWith(github.ref, 'refs/tags/v')
57+
- uses: actions/upload-artifact@v4
58+
#if: startsWith(github.ref, 'refs/tags/v')
5959
with:
6060
name: build-artifact
6161
path: out
6262

6363
publish:
6464
needs: build
65-
if: startsWith(github.ref, 'refs/tags/v')
65+
#if: startsWith(github.ref, 'refs/tags/v')
6666
runs-on: ubuntu-latest
6767
steps:
68-
- uses: actions/download-artifact@v2
68+
- uses: actions/download-artifact@v4
6969
with:
7070
name: build-artifact
7171
path: out
7272

7373
- name: Setup .NET
74-
uses: actions/setup-dotnet@v1
74+
uses: actions/setup-dotnet@v4
7575
with:
7676
dotnet-version: '8.0.x'
7777

78-
- name: Push
79-
run: dotnet nuget push "out/*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
78+
# - name: Push
79+
# run: dotnet nuget push "out/*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json

0 commit comments

Comments
 (0)