Skip to content

Commit 0d0f1e1

Browse files
authored
Update build-and-publish-new-version.yml
1 parent 3366147 commit 0d0f1e1

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/build-and-publish-new-version.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: Build and publish a new version
22

33
on:
44
workflow_dispatch:
5-
branches: main
65
inputs:
76
tag:
87
description: 'Release Tag. This is in the form x.y.z'
@@ -68,13 +67,13 @@ jobs:
6867
echo "$RELEASE_NOTES"
6968
RELEASE_ARTIFACTS=$(find ./dist -name "*${{ github.event.inputs.tag }}*" -type f | paste -s -d ' ' - )
7069
VERSION_TAG="v${{ github.event.inputs.tag }}"
71-
gh auth login --with-token <<< "${{ secrets.GH_TOKEN }}"
72-
gh release create "$VERSION_TAG" \
73-
--title "$VERSION_TAG" \
74-
--notes "$RELEASE_NOTES" \
75-
--target "$GITHUB_SHA" \
76-
$RELEASE_ARTIFACTS
77-
gh pr create --title "Release $VERSION_TAG" --body "$RELEASE_NOTES"
70+
gh auth login --with-token <<< "${{ secrets.GH_TOKEN }}"
71+
gh release create "$VERSION_TAG" \
72+
--title "$VERSION_TAG" \
73+
--notes "$RELEASE_NOTES" \
74+
--target "$GITHUB_SHA" \
75+
$RELEASE_ARTIFACTS
76+
gh pr create --title "Release $VERSION_TAG" --body "$RELEASE_NOTES"
7877
7978
publish-to-test-pypi:
8079
name: Publish to Test PyPI

0 commit comments

Comments
 (0)