mirror of
https://github.com/mii443/tokenizers.git
synced 2025-08-22 16:25:30 +00:00
Cleanup and restore all steps
This commit is contained in:
70
.github/workflows/python-release.yml
vendored
70
.github/workflows/python-release.yml
vendored
@ -1,9 +1,9 @@
|
||||
name: Python Release - Debug
|
||||
name: Python Release
|
||||
|
||||
on: [push]
|
||||
# push:
|
||||
# tags:
|
||||
# - python-v*
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- python-v*
|
||||
|
||||
env:
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
@ -110,33 +110,33 @@ jobs:
|
||||
pip install awscli
|
||||
aws s3 sync --exact-timestamps ./bindings/python/dist "s3://tokenizers-releases/python/$GITHUB_SHA"
|
||||
|
||||
# upload_package:
|
||||
# name: Upload package to PyPi
|
||||
# runs-on: ubuntu-latest
|
||||
# needs: [create_wheels_manylinux, create_wheels_others]
|
||||
#
|
||||
# steps:
|
||||
# - uses: actions/checkout@v1
|
||||
#
|
||||
# - name: Install Python
|
||||
# uses: actions/setup-python@v1
|
||||
#
|
||||
# - name: Retrieve all wheels
|
||||
# shell: bash
|
||||
# run: |
|
||||
# pip install awscli
|
||||
# aws s3 sync "s3://tokenizers-releases/python/$GITHUB_SHA" ./bindings/python/dist
|
||||
#
|
||||
# - name: Install dependencies
|
||||
# run: |
|
||||
# pip install setuptools wheel setuptools-rust
|
||||
#
|
||||
# - name: Create source distribution
|
||||
# working-directory: ./bindings/python
|
||||
# run: sh build-sdist.sh
|
||||
#
|
||||
# - name: Upload to PyPi
|
||||
# working-directory: ./bindings/python
|
||||
# run: |
|
||||
# pip install twine
|
||||
# twine upload dist/* -u __token__ -p "$PYPI_TOKEN"
|
||||
upload_package:
|
||||
name: Upload package to PyPi
|
||||
runs-on: ubuntu-latest
|
||||
needs: [create_wheels_manylinux, create_wheels_others]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
|
||||
- name: Install Python
|
||||
uses: actions/setup-python@v1
|
||||
|
||||
- name: Retrieve all wheels
|
||||
shell: bash
|
||||
run: |
|
||||
pip install awscli
|
||||
aws s3 sync "s3://tokenizers-releases/python/$GITHUB_SHA" ./bindings/python/dist
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
pip install setuptools wheel setuptools-rust
|
||||
|
||||
- name: Create source distribution
|
||||
working-directory: ./bindings/python
|
||||
run: sh build-sdist.sh
|
||||
|
||||
- name: Upload to PyPi
|
||||
working-directory: ./bindings/python
|
||||
run: |
|
||||
pip install twine
|
||||
twine upload dist/* -u __token__ -p "$PYPI_TOKEN"
|
||||
|
Reference in New Issue
Block a user