Skip to content

Commit

Permalink
release增加版本号
Browse files Browse the repository at this point in the history
  • Loading branch information
aiqinxuancai committed Jan 30, 2024
1 parent 04aa05b commit ece1b50
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,14 @@ jobs:
msbuild ${{env.SOLUTION_FILE_PATH}} -t:rebuild -verbosity:diag -property:Configuration=${{env.BUILD_CONFIGURATION}} -property:Platform=${{env.BUILD_PLATFORM}}
- name: Compress-Archive
run: powershell Compress-Archive -Path "bin/${{env.BUILD_CONFIGURATION}}/AutoLinker.fne" -DestinationPath "AutoLinker.zip"
run: |
$tagName = ${{ github.ref }} -replace 'refs/tags/', ''
$zipPath = "AutoLinker-$tagName.zip"
powershell Compress-Archive -Path "bin/${{env.BUILD_CONFIGURATION}}/AutoLinker.fne" -DestinationPath $zipPath
- name: Create a Release
uses: ncipollo/release-action@v1
with:
artifacts: "AutoLinker.zip"
artifacts: "AutoLinker-$tagName.zip"
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit ece1b50

Please sign in to comment.