Skip to content

Commit

Permalink
更新文件名
Browse files Browse the repository at this point in the history
  • Loading branch information
sinspired committed Oct 16, 2024
1 parent de7a834 commit ddbc697
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,17 +102,23 @@ jobs:
echo "commit_message=${COMMIT_MESSAGE}" >> $GITHUB_OUTPUT
shell: bash

- name: Delete existing release
uses: dev-drprasad/[email protected]
with:
tag_name: ${{ github.ref_name }}
delete_release: true
- name: Check existing release
id: check_release
run: |
if gh release view ${{ github.ref_name }} &> /dev/null; then
echo "release_exists=true" >> $GITHUB_OUTPUT
else
echo "release_exists=false" >> $GITHUB_OUTPUT
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: List Files
run: ls -R ./
shell: bash
- name: Delete existing release
if: steps.check_release.outputs.release_exists == 'true'
run: |
gh release delete ${{ github.ref_name }} --yes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create Release
env:
Expand All @@ -125,7 +131,7 @@ jobs:
Changes in this release:
${{ steps.commit_message.outputs.commit_message }}" \
--draft=false \
**/cnNetTool-Linux-x64.zip
**/cnNetTool-Windows-x64.zip
**/cnNetTool-Linux-x64.zip \
**/cnNetTool-Windows-x64.zip \
**/cnNetTool-macOS-x64.zip
shell: bash

0 comments on commit ddbc697

Please sign in to comment.