Skip to content

Commit

Permalink
chore: update GitHub actions
Browse files Browse the repository at this point in the history
- Comment added above the `uses: actions/setup-dotnet@v4` line, indicating the .NET Core SDK 8.0 setup was commented out
- Comment added above the `uses: actions/upload-artifact@v4` line, indicating the upload artifact action was updated to version 4
- Comment added above the `uses: actions/download-artifact@v4` line, indicating the download artifact action was updated to version 4

Signed-off-by: 陳鈞 <[email protected]>
  • Loading branch information
jim60105 committed Dec 24, 2023
1 parent c016041 commit cbff2d6
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET Core SDK 7.0
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.x'

# Pre-installed in windows-latest
# - name: Setup .NET Core SDK 8.0
# uses: actions/setup-dotnet@v4
# with:
# dotnet-version: '8.0.x'

- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1

Expand All @@ -25,18 +28,18 @@ jobs:
run: msbuild YoutubeSegmentDownloader.sln -t:publish -p:Configuration=Release -p:DeployOnBuild=true -p:PublishProfile=ClickOnceProfile

- name: Upload Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: artifact
path: bin/Release/net7.0-windows/win-x64/app.publish
path: bin/Release/net8.0-windows/win-x64/app.publish
retention-days: 1

deploy_setup:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: artifact

Expand All @@ -53,7 +56,7 @@ jobs:
needs: build
steps:
- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: artifact

Expand Down

0 comments on commit cbff2d6

Please sign in to comment.