Updated release script

pull/687/head
kompotkot 2022-10-27 09:11:40 +00:00
rodzic 43535cae50
commit 06cdb16042
2 zmienionych plików z 2 dodań i 29 usunięć

Wyświetl plik

@ -1,9 +1,8 @@
name: Publish Moonstream Python client library
on:
push:
tags:
- "clients/python/v*"
release:
types: [published]
defaults:
run:
@ -29,17 +28,3 @@ jobs:
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
create_release:
runs-on: ubuntu-20.04
steps:
- uses: actions/create-release@v1
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: "Moonstream Python client library - ${{ github.ref }}"
body: |
Version ${{ github.ref }} of the Moonstream Python client library.
draft: true
prerelease: false

Wyświetl plik

@ -1,12 +0,0 @@
#!/usr/bin/env bash
set -e
TAG="clients/python/v$(python setup.py --version)"
read -r -p "Tag: $TAG -- tag and push (y/n)?" ACCEPT
if [ "$ACCEPT" = "y" ]
then
echo "Tagging and pushing: $TAG..."
git tag "$TAG"
git push upstream "$TAG"
else
echo "noop"
fi