From ee82a44591c8774ab8664ed06f1a175cb895103f Mon Sep 17 00:00:00 2001 From: Ayslan Batista <98388350+AyslanBatista@users.noreply.github.com> Date: Tue, 18 Jun 2024 11:12:21 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8Publish=20and=20Release=20(#15)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 🔨Publish and Release --- .github/workflows/release.yml | 67 +++++++++++++++++------------------ encryptdef/VERSION.txt | 2 +- 2 files changed, 34 insertions(+), 35 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a871f20..437b822 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,43 +3,42 @@ name: publish-and-release on: push: tags: - - 'v*.*.*' + - "v*.*.*" jobs: build: runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: "3.12" - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install build twine - - - name: Build package - run: python -m build - - - name: Publish to PyPI - env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - run: twine upload dist/* - - - name: Create GitHub Release - id: create_release - uses: actions/create-release@v1 - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - body: "Release of version ${{ github.ref }}" - draft: false - prerelease: false + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: "3.12" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install build twine + + - name: Build package + run: python -m build + + - name: Publish to PyPI + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: twine upload dist/* + + - name: Create GitHub Release + id: create_release + uses: actions/create-release@v1 + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + body: "Release of version ${{ github.ref }}" + draft: false + prerelease: false + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/encryptdef/VERSION.txt b/encryptdef/VERSION.txt index be2bc4a..b603b4d 100644 --- a/encryptdef/VERSION.txt +++ b/encryptdef/VERSION.txt @@ -1 +1 @@ -1.0.3.dev1 \ No newline at end of file +1.0.6.dev0 \ No newline at end of file