mirror of
https://github.com/mii443/tokenizers.git
synced 2025-09-01 14:59:20 +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]
|
on:
|
||||||
# push:
|
push:
|
||||||
# tags:
|
tags:
|
||||||
# - python-v*
|
- python-v*
|
||||||
|
|
||||||
env:
|
env:
|
||||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
@ -110,33 +110,33 @@ jobs:
|
|||||||
pip install awscli
|
pip install awscli
|
||||||
aws s3 sync --exact-timestamps ./bindings/python/dist "s3://tokenizers-releases/python/$GITHUB_SHA"
|
aws s3 sync --exact-timestamps ./bindings/python/dist "s3://tokenizers-releases/python/$GITHUB_SHA"
|
||||||
|
|
||||||
# upload_package:
|
upload_package:
|
||||||
# name: Upload package to PyPi
|
name: Upload package to PyPi
|
||||||
# runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# needs: [create_wheels_manylinux, create_wheels_others]
|
needs: [create_wheels_manylinux, create_wheels_others]
|
||||||
#
|
|
||||||
# steps:
|
steps:
|
||||||
# - uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
#
|
|
||||||
# - name: Install Python
|
- name: Install Python
|
||||||
# uses: actions/setup-python@v1
|
uses: actions/setup-python@v1
|
||||||
#
|
|
||||||
# - name: Retrieve all wheels
|
- name: Retrieve all wheels
|
||||||
# shell: bash
|
shell: bash
|
||||||
# run: |
|
run: |
|
||||||
# pip install awscli
|
pip install awscli
|
||||||
# aws s3 sync "s3://tokenizers-releases/python/$GITHUB_SHA" ./bindings/python/dist
|
aws s3 sync "s3://tokenizers-releases/python/$GITHUB_SHA" ./bindings/python/dist
|
||||||
#
|
|
||||||
# - name: Install dependencies
|
- name: Install dependencies
|
||||||
# run: |
|
run: |
|
||||||
# pip install setuptools wheel setuptools-rust
|
pip install setuptools wheel setuptools-rust
|
||||||
#
|
|
||||||
# - name: Create source distribution
|
- name: Create source distribution
|
||||||
# working-directory: ./bindings/python
|
working-directory: ./bindings/python
|
||||||
# run: sh build-sdist.sh
|
run: sh build-sdist.sh
|
||||||
#
|
|
||||||
# - name: Upload to PyPi
|
- name: Upload to PyPi
|
||||||
# working-directory: ./bindings/python
|
working-directory: ./bindings/python
|
||||||
# run: |
|
run: |
|
||||||
# pip install twine
|
pip install twine
|
||||||
# twine upload dist/* -u __token__ -p "$PYPI_TOKEN"
|
twine upload dist/* -u __token__ -p "$PYPI_TOKEN"
|
||||||
|
Reference in New Issue
Block a user