From 6323c2380373df68bbbceb41df470edff3ae5a2a Mon Sep 17 00:00:00 2001 From: Fantix King Date: Mon, 14 Oct 2024 12:42:04 -0400 Subject: [PATCH] Test release --- .github/workflows/release.yml | 55 ++--------------------------------- 1 file changed, 3 insertions(+), 52 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6be27e7..bbb675f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,38 +1,17 @@ name: Release on: - pull_request: + push: branches: - - "master" - - "ci" - - "[0-9]+.[0-9x]+*" - paths: - - "httptools/_version.py" + - "release" jobs: validate-release-request: runs-on: ubuntu-latest steps: - - name: Validate release PR - uses: edgedb/action-release/validate-pr@bae6b9134e872166b43d218dd79397c851c41c9a - id: checkver - with: - require_team: Release Managers - require_approval: no - github_token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }} - version_file: httptools/_version.py - version_line_pattern: | - __version__\s*=\s*(?:['"])([[:PEP440:]])(?:['"]) - - - name: Stop if not approved - if: steps.checkver.outputs.approved != 'true' - run: | - echo ::error::PR is not approved yet. - exit 1 - - name: Store release version for later use env: - VERSION: ${{ steps.checkver.outputs.version }} + VERSION: 0.6.1 run: | mkdir -p dist/ echo "${VERSION}" > dist/VERSION @@ -146,33 +125,5 @@ jobs: echo ::set-output name=version::$(cat dist/VERSION) rm dist/VERSION - - name: Merge and tag the PR - uses: edgedb/action-release/merge@bae6b9134e872166b43d218dd79397c851c41c9a - with: - github_token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }} - ssh_key: ${{ secrets.RELEASE_BOT_SSH_KEY }} - gpg_key: ${{ secrets.RELEASE_BOT_GPG_KEY }} - gpg_key_id: "5C468778062D87BF!" - tag_name: v${{ steps.relver.outputs.version }} - - - name: Publish Github Release - uses: elprans/gh-action-create-release@5f9abb8f0677196a76ea77e64341fa8ca31dad4f - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: v${{ steps.relver.outputs.version }} - release_name: v${{ steps.relver.outputs.version }} - target: ${{ github.event.pull_request.base.ref }} - body: ${{ github.event.pull_request.body }} - draft: false - - run: | ls -al dist/ - - - name: Upload to PyPI - uses: pypa/gh-action-pypi-publish@f7600683efdcb7656dec5b29656edb7bc586e597 # v1.10.3 - with: - user: __token__ - password: ${{ secrets.PYPI_TOKEN }} - # password: ${{ secrets.TEST_PYPI_TOKEN }} - # repository_url: https://test.pypi.org/legacy/