Skip to content

Commit

Permalink
合并拉取请求 #15
Browse files Browse the repository at this point in the history
更新工作流
  • Loading branch information
XCWQW1 authored Aug 16, 2024
2 parents 8c7e9b8 + 6394d58 commit fb55516
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
uses: actions/checkout@v4

- name: '检查 tag'
shell: bash
run: |
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
tag_name="${GITHUB_REF##*/}"
Expand Down Expand Up @@ -43,8 +44,8 @@ jobs:
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ env.TAG_NAME }}
file: dist/DDNetTool*
asset_name: DDNetToolBox-${{ runner.os }}-${{ env.TAG_NAME }}-*
file: dist/DDNetToolBox
asset_name: DDNetToolBox-${{ runner.os }}-${{ env.TAG_NAME }}
prerelease: true

build-windows:
Expand All @@ -55,12 +56,13 @@ jobs:
uses: actions/checkout@v4

- name: '检查 tag'
shell: pwsh
run: |
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
tag_name="${GITHUB_REF##*/}"
echo Tag $tag_name
$tag_name = "${GITHUB_REF}".Split('/')[-1]
Write-Output "Tag $tag_name"
git checkout $tag_name
echo "TAG_NAME=${tag_name}" >> $GITHUB_ENV
echo "TAG_NAME=$tag_name" >> $env:GITHUB_ENV
- name: 初始化 Python ${{ env.PYTHON_VERSION }} 环境
uses: actions/setup-python@v4
Expand All @@ -83,6 +85,6 @@ jobs:
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ env.TAG_NAME }}
file: dist/DDNetTool*
asset_name: DDNetToolBox-${{ runner.os }}-${{ env.TAG_NAME }}-*
file: dist/DDNetToolBox.exe
asset_name: DDNetToolBox-${{ runner.os }}-${{ env.TAG_NAME }}.exe
prerelease: true

0 comments on commit fb55516

Please sign in to comment.