Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
  • Loading branch information
universalmind303 committed Feb 1, 2024
1 parent 66bb7c8 commit cc4bd64
Showing 1 changed file with 26 additions and 28 deletions.
54 changes: 26 additions & 28 deletions .github/workflows/python-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ on:
push:
tags:
- "*"
branches:
- universalmind303/py-release
schedule:
# Run every Monday at 12:00
- cron: 0 12 * * 1
Expand Down Expand Up @@ -119,7 +117,7 @@ jobs:
matrix:
config:
- target: x86_64-apple-darwin
runner: macos-13
runner: macos-13-large
- target: aarch64-apple-darwin
runner: macos-13-xlarge

Expand Down Expand Up @@ -156,28 +154,28 @@ jobs:
"text": "Python bindings build result (macos ${{ matrix.target }}): ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
}
# release:
# name: Release
# if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
# runs-on: ubuntu-latest
# needs: [linux, macos, windows]
# steps:
# - uses: actions/download-artifact@v3
# with:
# name: wheels
# - name: Publish to PyPI
# uses: PyO3/maturin-action@v1
# env:
# MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
# with:
# command: upload
# args: --skip-existing *

# - name: Post to slack
# uses: slackapi/[email protected]
# if: ${{ always() }}
# with:
# payload: |
# {
# "text": "Python bindings publish result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
# }
release:
name: Release
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
runs-on: ubuntu-latest
needs: [linux, macos, windows]
steps:
- uses: actions/download-artifact@v3
with:
name: wheels
- name: Publish to PyPI
uses: PyO3/maturin-action@v1
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
with:
command: upload
args: --skip-existing *

- name: Post to slack
uses: slackapi/[email protected]
if: ${{ always() }}
with:
payload: |
{
"text": "Python bindings publish result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
}

0 comments on commit cc4bd64

Please sign in to comment.