Skip to content

Use API token for uploads #210

Use API token for uploads

Use API token for uploads #210

Workflow file for this run

name: Build manylinux1 wheels
on: [push]
jobs:
build_sdist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '>=3.7 <3.13'
- name: install MeCab
run: |
git clone --depth=1 https://github.com/taku910/mecab.git
cd mecab/mecab
./configure --enable-utf8-only
make
sudo make install
cd ../..
- name: build sdist
run: |
python -m pip install --upgrade pip
pip install twine setuptools-scm build
python -m build
- name: upload to pypi if tagged
if: startsWith(github.ref, 'refs/tags')
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
twine upload dist/fugashi*.tar.gz
build_linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '>=3.7 <3.13'
- name: build array of wheels
uses: ./.github/workflows/actions/build-manylinux/
- name: Upload Wheels
uses: actions/upload-artifact@v1
with:
name: manylinux2014-wheels
path: manylinux2014-wheels
- name: Publish to PyPI if tagged
if: startsWith(github.ref, 'refs/tags')
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
python --version
pip --version
python -m pip install --upgrade pip
pip install twine setuptools-scm
twine upload manylinux2014-wheels/fugashi*whl
build_linux-aarch64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '>=3.7 <3.13'
- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v1
- uses: ./.github/workflows/actions/build-manylinux-aarch64/
- name: Upload Wheels
uses: actions/upload-artifact@v1
with:
name: manylinux-aarch64-wheels
path: manylinux-aarch64-wheels
- name: Publish to PyPI if tagged
if: startsWith(github.ref, 'refs/tags')
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
python --version
pip --version
python -m pip install --upgrade pip
pip install twine setuptools-scm
twine upload manylinux-aarch64-wheels/fugashi*whl