Skip to content

Commit

Permalink
Republish 2.0 to PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
fantix committed Jun 20, 2024
1 parent 6a8226d commit ee48194
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 39 deletions.
42 changes: 4 additions & 38 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,33 +8,19 @@ on:
- "[0-9]+.[0-9x]+*"
paths:
- "edgedb/_version.py"
push:
branches:
- "ci"

jobs:
validate-release-request:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.checkver.outputs.version }}
steps:
- name: Validate release PR
uses: edgedb/action-release/validate-pr@master
id: checkver
with:
github_token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}
require_team: Release Managers
require_approval: no
version_file: edgedb/_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: 2.0.0
run: |
mkdir -p dist/
echo "${VERSION}" > dist/VERSION
Expand Down Expand Up @@ -177,26 +163,6 @@ jobs:
echo ::set-output name=version::$(cat dist/VERSION)
rm dist/VERSION
- name: Merge and tag the PR
uses: edgedb/action-release/merge@master
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@master
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: true

- run: |
ls -al dist/
Expand Down
2 changes: 1 addition & 1 deletion tests/shared-client-testcases

0 comments on commit ee48194

Please sign in to comment.