Skip to content

Commit e921025

Browse files
authored
chore: update on-push-tag.yml
1 parent 19c14f0 commit e921025

File tree

1 file changed

+4
-18
lines changed

1 file changed

+4
-18
lines changed

.github/workflows/on-push-tag.yml

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
#
33
# - Get new tag.
44
# - If release condidate tag:
5-
# - Build the pre-release.
65
# - Cut GitHub pre-release.
7-
# - Upload wheel to pre-release.
86
name: Prerelease Tag Workflow
97

108
on:
@@ -14,6 +12,9 @@ on:
1412

1513
jobs:
1614
cut_prerelease:
15+
permissions:
16+
contents: write
17+
pull-requests: write
1718
name: Cut Pre-Release
1819
runs-on: ubuntu-latest
1920
steps:
@@ -30,17 +31,10 @@ jobs:
3031
if [[ $tag == *"-rc"* ]]; then
3132
echo "do_prerelease=1" >> $GITHUB_ENV
3233
fi
33-
echo "tag=$(echo $tag)" >> $GITHUB_OUTPUT
34+
echo "tag=$(echo $tag)" >> $GITHUB_ENV
3435
echo "New tag is: $tag"
3536
echo "GitHub ref: ${{ github.ref }}"
3637
37-
- name: Build pre-release
38-
id: build
39-
if: ${{ env.do_prerelease == 1 }}
40-
run: |
41-
pip install -U pip poetry twine
42-
poetry build && twine check dist/* && echo "build_ok=1" >> $GITHUB_ENV
43-
4438
- name: Cut pre-release
4539
id: cutprerelease
4640
if: ${{ env.build_ok == 1 }}
@@ -53,11 +47,3 @@ jobs:
5347
publish: true
5448
env:
5549
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56-
57-
- name: Upload wheel to GitHub pre-release
58-
id: upload-wheel
59-
if: ${{ env.build_ok == 1 }}
60-
uses: shogo82148/actions-upload-release-asset@v1
61-
with:
62-
upload_url: ${{ steps.cutprerelease.outputs.upload_url }}
63-
asset_path: ./dist/*.whl

0 commit comments

Comments
 (0)