From 23176bafb29cdac7ce6cdc16a0cd3a1f17a013f0 Mon Sep 17 00:00:00 2001 From: jung-geun Date: Tue, 18 Jul 2023 11:46:08 +0900 Subject: [PATCH] =?UTF-8?q?23-07-18=20pypi=20=EC=88=98=EC=A0=95=202=20rele?= =?UTF-8?q?ase=20=ED=8C=8C=EC=9D=BC=20=EC=9E=90=EB=8F=99=20=EC=83=9D?= =?UTF-8?q?=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/Release-Tag.yml | 23 +++++++++++++++++++++++ .github/workflows/pypi.yml | 4 ++-- 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/Release-Tag.yml diff --git a/.github/workflows/Release-Tag.yml b/.github/workflows/Release-Tag.yml new file mode 100644 index 0000000..6278c32 --- /dev/null +++ b/.github/workflows/Release-Tag.yml @@ -0,0 +1,23 @@ +name: Release Tag + +on: + push: + tags: + - master +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Get Version + run: echo "##[set-output name=version;]$(echo '${{ github.event.head_commit.message }}' | egrep -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}')" + id: extract_version_name + - name: Create Release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ steps.extract_version_name.outputs.version }} + release_name: Release ${{ steps.extract_version_name.outputs.version }} + body: | + Release ${{ steps.extract_version_name.outputs.version }} \ No newline at end of file diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index a68c8d3..b236c68 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -24,5 +24,5 @@ jobs: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} run: | - python setup.py bdist_wheel - twine upload dist/*.whl + python setup.py bdist_wheel sdist + twine upload dist/*.whl dist/*.tar.gz