mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-27 17:54:32 +03:00
create release
This commit is contained in:
parent
0364455bfb
commit
6991e05c68
17
.github/workflows/wheels.yml
vendored
17
.github/workflows/wheels.yml
vendored
|
@ -61,7 +61,7 @@ jobs:
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
|
|
||||||
echo "::group::Build wheel"
|
echo "::group::Build wheel"
|
||||||
if [[ "${{ startsWith(github.ref, 'refs/tags') }}" == "false" ]]; then
|
if [[ "${{ startsWith(github.ref, 'refs/tags/') }}" == "false" ]]; then
|
||||||
BUILD_COMMIT=master
|
BUILD_COMMIT=master
|
||||||
fi
|
fi
|
||||||
clean_code $REPO_DIR $BUILD_COMMIT
|
clean_code $REPO_DIR $BUILD_COMMIT
|
||||||
|
@ -75,3 +75,18 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: wheels
|
name: wheels
|
||||||
path: wheelhouse/*.whl
|
path: wheelhouse/*.whl
|
||||||
|
|
||||||
|
release:
|
||||||
|
name: Create Release
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
needs: build
|
||||||
|
steps:
|
||||||
|
- uses: actions/download-artifact@v2
|
||||||
|
with:
|
||||||
|
name: wheels
|
||||||
|
- name: Upload Release
|
||||||
|
uses: fnkr/github-action-ghr@v1.3
|
||||||
|
env:
|
||||||
|
GHR_PATH: .
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user