mirror of https://github.com/MagicStack/uvloop.git
debug release
This commit is contained in:
parent
75f3c47f8d
commit
1a0177c157
|
@ -1,49 +1,12 @@
|
|||
name: Release
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- "master"
|
||||
- "ci"
|
||||
- "[0-9]+.[0-9x]+*"
|
||||
paths:
|
||||
- "uvloop/_version.py"
|
||||
- "debug-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: uvloop/_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 }}
|
||||
run: |
|
||||
mkdir -p dist/
|
||||
echo "${VERSION}" > dist/VERSION
|
||||
|
||||
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
|
||||
with:
|
||||
name: dist
|
||||
path: dist/
|
||||
|
||||
build-sdist:
|
||||
needs: validate-release-request
|
||||
runs-on: ubuntu-22.04
|
||||
|
||||
env:
|
||||
|
@ -70,7 +33,6 @@ jobs:
|
|||
path: dist/*.tar.*
|
||||
|
||||
build-wheels:
|
||||
needs: validate-release-request
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
@ -119,56 +81,3 @@ jobs:
|
|||
with:
|
||||
name: dist
|
||||
path: wheelhouse/*.whl
|
||||
|
||||
publish:
|
||||
needs: [build-sdist, build-wheels]
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
|
||||
with:
|
||||
fetch-depth: 5
|
||||
submodules: false
|
||||
|
||||
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
|
||||
with:
|
||||
name: dist
|
||||
path: dist/
|
||||
|
||||
- name: Extract Release Version
|
||||
id: relver
|
||||
run: |
|
||||
set -e
|
||||
echo version=$(cat dist/VERSION) >> $GITHUB_OUTPUT
|
||||
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@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: false
|
||||
|
||||
- run: |
|
||||
ls -al dist/
|
||||
|
||||
- name: Upload to PyPI
|
||||
uses: pypa/gh-action-pypi-publish@b7f401de30cb6434a1e19f805ff006643653240e # v1.8.10
|
||||
with:
|
||||
user: __token__
|
||||
password: ${{ secrets.PYPI_TOKEN }}
|
||||
# password: ${{ secrets.TEST_PYPI_TOKEN }}
|
||||
# repository_url: https://test.pypi.org/legacy/
|
||||
|
|
|
@ -10,4 +10,4 @@
|
|||
# supported platforms, publish the packages on PyPI, merge the PR
|
||||
# to the target branch, create a Git tag pointing to the commit.
|
||||
|
||||
__version__ = '0.18.0'
|
||||
__version__ = '0.19.0a1'
|
||||
|
|
Loading…
Reference in New Issue