From 94f057a64114f94ae41086ab33f9873061b0a2d7 Mon Sep 17 00:00:00 2001 From: yedongfu Date: Mon, 8 Nov 2021 22:38:28 +0800 Subject: [PATCH] add release workflows --- .github/workflows/release.yml | 28 ++++++++++++++++++++++++++++ setup.py | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..8321682 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,28 @@ +on: + push: + # Sequence of patterns matched against refs/tags + tags: + - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 + +name: Create Release + +jobs: + build: + name: Create Release + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + body: | + Changes in this Release + - used with dtm ${{ github.ref }} and later + draft: false + prerelease: false diff --git a/setup.py b/setup.py index 1a5bcbd..ca3940a 100755 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="dtmcli", - version="1.5.0", + version="1.5.1.0", author="yedf2", author_email="120050102@qq.com", description="python client for dtm",