Skip to content

Commit

Permalink
ci: dist file discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
283375 committed Mar 31, 2024
1 parent 62c3431 commit 64285c3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/build-and-draft-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,20 @@ 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:
discussion_category_name: New releases
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

0 comments on commit 64285c3

Please sign in to comment.