Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JerryBian committed Feb 2, 2024
1 parent d596704 commit 656aa94
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '7'
dotnet-version: '8'
- name: Run test
run: |
dotnet test test/
Expand All @@ -23,10 +23,10 @@ jobs:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '7'
dotnet-version: '8'
- name: Run test
run: |
dotnet test test/
Expand All @@ -36,10 +36,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '7'
dotnet-version: '8'
- name: Run test
run: |
dotnet test test/
Expand All @@ -51,7 +51,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install dependencies
run: |
Expand All @@ -64,7 +64,7 @@ jobs:
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '7'
dotnet-version: '4'

- name: publish-nuget
shell: pwsh
Expand All @@ -83,7 +83,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install dependencies
run: |
Expand All @@ -96,9 +96,9 @@ jobs:
APP_VERSION_ARR=(${APP_VERSION//./ })
echo "APP_VERSION_LINK=${APP_VERSION_ARR[0]}${APP_VERSION_ARR[1]}" >> $GITHUB_ENV
- uses: actions/setup-dotnet@v3
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '7'
dotnet-version: '8'

- name: Publish Binaries
run: |
Expand Down Expand Up @@ -143,13 +143,12 @@ jobs:
commit: master
artifactErrorsFailBuild: true
body: "Changes could be found at [CHANGELOG](https://github.com/JerryBian/tur/blob/master/CHANGELOG.md#${{ env.APP_VERSION_LINK }})."
- uses: dev-drprasad/delete-tag-and-release@v0.2.1
- uses: dev-drprasad/delete-tag-and-release@v1.0
name: Remove existing release for [latest]
with:
delete_release: true
tag_name: latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
- uses: ncipollo/release-action@v1
name: publish release for [latest]
with:
Expand Down

0 comments on commit 656aa94

Please sign in to comment.