From c9b952e8b2659b6e406ac2a847c0b3ae25ebc650 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20E=2E=20Bermonti-P=C3=A9rez?= Date: Thu, 29 Apr 2021 15:31:43 -0400 Subject: [PATCH 1/3] Delete ci action to release to gh This was substituted with release-drafter --- .github/workflows/release_github.yml | 52 ---------------------------- 1 file changed, 52 deletions(-) delete mode 100644 .github/workflows/release_github.yml diff --git a/.github/workflows/release_github.yml b/.github/workflows/release_github.yml deleted file mode 100644 index 9773366..0000000 --- a/.github/workflows/release_github.yml +++ /dev/null @@ -1,52 +0,0 @@ -name: release github -on: - push: - tags: - - 'v*' -jobs: - release_github: - name: Create Github Release - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2.3.4 - - - name: Set up Python 3.6 - uses: actions/setup-python@v2.2.1 - with: - python-version: 3.6 - - - name: Install system deps - shell: bash - run: | - pip install poetry - poetry config virtualenvs.in-project true - pip install nox - - - name: Run tests - shell: bash - run: nox --force-color -s tests - - - name: Get version from tag - id: tag_name - shell: bash - run: | - echo ::set-output name=current_version::${GITHUB_REF#refs/tags/v} - - - name: Get Changelog Entry - id: changelog_reader - uses: mindsers/changelog-reader-action@v2.0.0 - with: - version: ${{ steps.tag_name.outputs.current_version }} - path: ./CHANGELOG.md - - - name: Create Release - id: create_release - uses: actions/create-release@v1.1.4 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - body: ${{ steps.changelog_reader.outputs.changes }} - draft: false - prerelease: false From 99c47720ebc067f54ce610c2cbf4f4f3d158070a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20E=2E=20Bermonti-P=C3=A9rez?= Date: Thu, 29 Apr 2021 15:42:17 -0400 Subject: [PATCH 2/3] Release to pypi when a gh release is created --- .github/workflows/release_pypy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release_pypy.yml b/.github/workflows/release_pypy.yml index 53c26bb..039c9a9 100644 --- a/.github/workflows/release_pypy.yml +++ b/.github/workflows/release_pypy.yml @@ -1,8 +1,8 @@ name: release pypy on: - push: - tags: - - 'v*' + release: + types: [published] + jobs: release_pypy: runs-on: ubuntu-latest From 4038f6c6fe8247957a44d0c21c9acdf4b0ed3ab0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20E=2E=20Bermonti-P=C3=A9rez?= Date: Thu, 29 Apr 2021 15:47:01 -0400 Subject: [PATCH 3/3] Fix typo in filename --- .github/workflows/{release_pypy.yml => release_pypi.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{release_pypy.yml => release_pypi.yml} (100%) diff --git a/.github/workflows/release_pypy.yml b/.github/workflows/release_pypi.yml similarity index 100% rename from .github/workflows/release_pypy.yml rename to .github/workflows/release_pypi.yml