2020-10-23 16:23:03 +03:00
|
|
|
name: Wheels
|
|
|
|
|
2022-01-02 22:47:56 +03:00
|
|
|
on: [push, pull_request, workflow_dispatch]
|
2020-10-23 16:23:03 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2022-02-21 16:41:52 +03:00
|
|
|
uses: ./.github/workflows/wheels-build.yml
|
|
|
|
with:
|
|
|
|
build-commit: "HEAD"
|
|
|
|
artifacts-name: "wheels"
|
2020-10-24 04:17:04 +03:00
|
|
|
|
|
|
|
build-latest:
|
|
|
|
if: "!startsWith(github.ref, 'refs/tags/')"
|
2022-02-21 16:41:52 +03:00
|
|
|
uses: ./.github/workflows/wheels-build.yml
|
|
|
|
with:
|
|
|
|
build-commit: "main"
|
|
|
|
artifacts-name: "wheels-latest"
|
2020-10-23 18:20:37 +03:00
|
|
|
|
|
|
|
release:
|
|
|
|
name: Create Release
|
|
|
|
runs-on: ubuntu-latest
|
2020-10-24 04:17:04 +03:00
|
|
|
if: "startsWith(github.ref, 'refs/tags/')"
|
2020-10-23 18:20:37 +03:00
|
|
|
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 }}
|
2022-01-04 01:29:34 +03:00
|
|
|
|
|
|
|
success:
|
|
|
|
needs: [build, build-latest]
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Wheels Successful
|
|
|
|
steps:
|
|
|
|
- name: Success
|
|
|
|
run: echo Wheels Successful
|