Fix releasing wheels
This commit is contained in:
parent
6f4637db08
commit
4c3fd293db
3 changed files with 30 additions and 13 deletions
31
.github/workflows/release.yaml
vendored
31
.github/workflows/release.yaml
vendored
|
@ -21,15 +21,30 @@ jobs:
|
|||
python-version: ${{ matrix.python }}
|
||||
- name: Install tox
|
||||
run: pip install tox
|
||||
- name: Create release with tox
|
||||
id: create_release
|
||||
run: tox -e release
|
||||
- name: Upload Release Asset
|
||||
id: upload-release-asset
|
||||
uses: actions/upload-release-asset@v1
|
||||
- name: Build wheel
|
||||
id: build_wheel
|
||||
run: |
|
||||
tox -e release
|
||||
echo ::set-output name=wheel_name::chweb-$(python setup.py --version)-py3-none-any.whl
|
||||
- name: Create release
|
||||
uses: actions/create-release@v1
|
||||
id: release
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: ./dist/*
|
||||
tag_name: ${{ github.ref }}
|
||||
release_name: Release ${{ github.ref }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
- name: Check wheel name
|
||||
run: echo ${{ steps.build_wheel.outputs.wheel_name }}
|
||||
- name: Upload Release Asset
|
||||
id: upload-release-asset
|
||||
uses: actions/upload-release-asset@v1.0.2
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.release.outputs.upload_url }}
|
||||
asset_path: ./dist/${{ steps.build_wheel.outputs.wheel_name }}
|
||||
asset_name: ${{ steps.build_wheel.outputs.wheel_name }}
|
||||
asset_content_type: application/zip
|
||||
|
|
9
.github/workflows/unittests.yaml
vendored
9
.github/workflows/unittests.yaml
vendored
|
@ -2,8 +2,13 @@ name: unittests
|
|||
|
||||
on:
|
||||
push:
|
||||
tags-ignore:
|
||||
- '*.*'
|
||||
branches:
|
||||
- '*'
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
tags-ignore:
|
||||
- '*.*'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
|
|
@ -21,6 +21,3 @@ where=src
|
|||
console_scripts =
|
||||
chweb_collect = chweb.cmd:collect
|
||||
chweb_consume = chweb.cmd:consume
|
||||
|
||||
[bdist_wheel]
|
||||
universal = 1
|
||||
|
|
Loading…
Add table
Reference in a new issue