From 64285c350cfb87dc7e91ef35f5ef54507c66af35 Mon Sep 17 00:00:00 2001 From: 283375 Date: Mon, 1 Apr 2024 00:07:45 +0800 Subject: [PATCH] ci: dist file discovery --- .github/workflows/build-and-draft-release.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-draft-release.yml b/.github/workflows/build-and-draft-release.yml index aa978c5..6334dfd 100644 --- a/.github/workflows/build-and-draft-release.yml +++ b/.github/workflows/build-and-draft-release.yml @@ -29,6 +29,14 @@ jobs: pip install build python -m build + - name: Remove `v` in tag name + uses: mad9000/actions-find-and-replace-string@5 + id: tagNameReplaced + with: + source: ${{ github.ref_name }} + find: "v" + replace: "" + - name: Draft a release uses: softprops/action-gh-release@v2 with: @@ -36,5 +44,5 @@ jobs: draft: true generate_release_notes: true files: | - dist/arcaea_offline-${{ github.ref_name }}*.whl - dist/arcaea-offline-${{ github.ref_name }}.tar.gz + dist/arcaea_offline-${{ steps.tagNameReplaced.outputs.value }}*.whl + dist/arcaea-offline-${{ steps.tagNameReplaced.outputs.value }}.tar.gz