Skip to content

Commit

Permalink
Upgrade actions to @v4
Browse files Browse the repository at this point in the history
Except for upload-artifact@v3 because of dorny/test-reporter#363
  • Loading branch information
0xced committed Mar 14, 2024
1 parent ba21b45 commit 3916070
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ jobs:
name: Run tests and create NuGet package
steps:
- name: Checkout git repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# to fetch all history for all branches and tags so that MinVer
fetch-depth: 0
- name: Install .NET SDK
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
- name: Retrieve cached NuGet packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
Expand All @@ -43,7 +43,7 @@ jobs:
- name: Run tests
run: dotnet test --no-build
- name: Upload received files from failing tests
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure()
with:
name: Received-${{ runner.os }}
Expand All @@ -65,7 +65,7 @@ jobs:
run: dotnet pack --no-build --output .
- name: Upload NuGet package artifact
if: matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: NuGet package
path: "*.nupkg"
Expand All @@ -76,7 +76,7 @@ jobs:
git tag --list ${{ github.ref_name }} --format='%(contents)' > ReleaseNotes.md
- name: Upload release notes
if: matrix.os == 'ubuntu-latest' && startsWith(github.ref, 'refs/tags/')
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Release Notes
path: ReleaseNotes.md
Expand All @@ -89,11 +89,11 @@ jobs:
name: Publish NuGet package and create GitHub release
steps:
- name: Download NuGet package artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: NuGet package
- name: Download release notes artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: Release Notes
- name: Create GitHub Release
Expand Down

0 comments on commit 3916070

Please sign in to comment.