From b7d5f4c987d59be92d7654c375d4d87aa79df596 Mon Sep 17 00:00:00 2001 From: Guillaume Renard Date: Thu, 29 Sep 2022 00:33:14 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Add=20GitHub=20release=20creatio?= =?UTF-8?q?n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci_cd.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index fa859ba..6bf5462 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -7,9 +7,8 @@ on: tags: - v*.*.* - jobs: - build: + build_publish: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 @@ -22,8 +21,17 @@ jobs: python -m pip install poetry --user poetry install - name: Build Pyhton module - run: poetry build -f wheel + run: poetry build - name: Publish distribution 📦 to PyPI uses: pypa/gh-action-pypi-publish@release/v1 with: - password: ${{ secrets.PYPI_TOKEN }} \ No newline at end of file + password: ${{ secrets.PYPI_TOKEN }} + - name: Create GitHub release + uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + prerelease: false + files: | + README.MD + CHANGELOG.MD + dist/*