Skip to content

Commit

Permalink
Update ci.yml to latest action versions
Browse files Browse the repository at this point in the history
  • Loading branch information
natemcmaster committed Mar 30, 2024
1 parent 178bce2 commit a8764ae
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ on:
description: Create a release
required: true
default: "false"
branches:
- main
- release/*

env:
IS_STABLE_BUILD: ${{ github.event.inputs.is_stable_build }}
Expand All @@ -37,26 +34,27 @@ jobs:
package_version: ${{ steps.build_script.outputs.package_version }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
7.0.x
- name: Run build script
id: build_script
run: ./build.ps1 -ci
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: ${{ matrix.os == 'windows-latest' }}
with:
name: packages
path: artifacts/
if-no-files-found: error
- uses: codecov/codecov-action@v3
- uses: codecov/codecov-action@v4
with:
name: unittests-${{ matrix.os }}
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
release:
if: "github.event.inputs.release"
needs: build
Expand All @@ -66,10 +64,10 @@ jobs:
steps:
- run: echo "Releasing ${{ env.PACKAGE_VERSION }}"
- name: Setup NuGet
uses: NuGet/setup-nuget@v1
uses: NuGet/setup-nuget@v2
with:
nuget-version: latest
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: packages
path: packages
Expand All @@ -80,7 +78,7 @@ jobs:
- name: Push to NuGet.org
run: nuget push packages\*.nupkg -ApiKey ${{ secrets.NUGET_API_KEY }} -Source https://api.nuget.org/v3/index.json -SkipDuplicate
- name: Create GitHub release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down

0 comments on commit a8764ae

Please sign in to comment.