5050 run : msbuild build.build -t:All -p:Version=$env:BUILD_VERSION -p:WIX_PATH=$env:wix -p:NUnitConsoleRunnerPath=$env:GITHUB_WORKSPACE\packages\nunit.consolerunner\3.15.0\
5151
5252 - name : Upload a Build Artifact
53- uses : actions/upload-artifact@v2
53+ uses : actions/upload-artifact@v4
5454 with :
5555 name : ' Test Result'
5656 path : Build\_build\TestResult.html
@@ -63,35 +63,26 @@ jobs:
6363 tag : ${{ env.BUILD_VERSION }}
6464
6565 - name : Comment pull request
66- uses : actions/github-script@0.3.0
66+ uses : actions/github-script@v7
6767 if : github.event_name == 'pull_request'
6868 with :
6969 github-token : ${{ secrets.GITHUB_TOKEN }}
7070 script : |
7171 const fs = require('fs');
7272 const filename = "Build/_build/TestResult.html";
73- const contents = fs.readFileSync(filename, "utf8");
73+ const body = fs.readFileSync(filename, "utf8");
7474 const { issue: { number: issue_number }, repo: { owner, repo } } = context;
75- github.issues.createComment({ issue_number, owner, repo, body: contents });
75+ github.rest. issues.createComment({ issue_number, owner, repo, body });
7676
7777 - name : Create release
7878 id : create_release
79- uses : actions/create- release@v1
79+ uses : softprops/action-gh- release@v2
8080 env :
8181 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
8282 with :
8383 tag_name : ${{ steps.tag.outputs.new_tag }}
84- release_name : Release v${{ steps.tag.outputs.new_tag }}
84+ name : Release v${{ steps.tag.outputs.new_tag }}
8585 draft : false
8686 prerelease : ${{ github.event_name == 'pull_request' }}
87-
88- - name : Upload artifact
89- id : upload-artifact
90- 91- env :
92- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
93- with :
94- upload_url : ${{ steps.create_release.outputs.upload_url }}
95- asset_path : _install\${{ env.BUILD_VERSION }}.zip
96- asset_name : ${{ env.BUILD_VERSION }}.zip
97- asset_content_type : application/zip
87+ files : |
88+ _install/${{ env.BUILD_VERSION }}.zip
0 commit comments