Skip to content

Commit 45e22c2

Browse files
authored
Merge pull request #125 from ds5678/update-workflow
2 parents 56bf1da + a091259 commit 45e22c2

3 files changed

Lines changed: 16 additions & 10 deletions

File tree

.github/workflows/dotnet.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,28 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1515

1616
- name: Setup .NET
17-
uses: actions/setup-dotnet@v1
17+
uses: actions/setup-dotnet@v4
1818
with:
19-
dotnet-version: 6.0.202
19+
global-json-file: global.json
2020

2121
- name: Extract Release Version
2222
id: get_version
2323
shell: bash
2424
run: |
2525
if [ "${GITHUB_REF#refs/tags/v}" != "$GITHUB_REF" ]; then
26-
echo ::set-output name=version::${GITHUB_REF#refs/tags/v}
26+
echo "version=${GITHUB_REF#refs/tags/v}" >> "$GITHUB_OUTPUT"
2727
else
28-
echo ::set-output name=build_tag::ci.${GITHUB_RUN_NUMBER}
28+
echo "build_tag=ci.${GITHUB_RUN_NUMBER}" >> "$GITHUB_OUTPUT"
2929
fi
3030
3131
- name: Build
3232
run: ./build.sh --target=Pack --build_version ${{ steps.get_version.outputs.version }} --build_tag ${{ steps.get_version.outputs.build_tag }}
3333

3434
- name: Upload artifact
35-
uses: actions/upload-artifact@v3
35+
uses: actions/upload-artifact@v4
3636
with:
3737
path: ./bin/zip/*.zip
3838
name: Il2CppInterop
@@ -50,7 +50,7 @@ jobs:
5050
dotnet nuget push --skip-duplicate -s "$push_source" -k "$push_api_key" ./bin/NuGet/*.nupkg
5151
5252
- name: Publish a release
53-
uses: softprops/action-gh-release@v1
53+
uses: softprops/action-gh-release@v2
5454
if: startsWith(github.ref, 'refs/tags/')
5555
with:
5656
files: ./bin/zip/*.zip

.github/workflows/format_check.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1515

1616
- name: Setup .NET
17-
uses: actions/setup-dotnet@v1
17+
uses: actions/setup-dotnet@v4
1818
with:
19-
dotnet-version: 6.0.202
19+
global-json-file: global.json
2020

2121
- name: Check format
2222
run: |

global.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"sdk": {
3+
"version": "8.0.0",
4+
"rollForward": "latestFeature"
5+
}
6+
}

0 commit comments

Comments
 (0)