Python Release Build #193
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python Release Build | ||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
schedule: | ||
# Release at 00:00 UTC+8 | ||
- cron: "0 16 * * *" | ||
workflow_dispatch: | ||
inputs: | ||
tags: | ||
description: The tags to be released | ||
required: false | ||
type: string | ||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Build Tool | ||
uses: ./.github/actions/setup_build_tool | ||
with: | ||
target: ${{ inputs.target }} | ||
bypass_env_vars: RUSTFLAGS,RUST_LOG | ||
- name: Generate version | ||
working-directory: src/bendpy | ||
run: | | ||
# GIT_TAG=`git describe --tags --abbrev=0` | ||
GIT_TAG="1.1.33" | ||
echo "LATEST TAG $GIT_TAG" | ||
sed -i "s#0.1.2#$GIT_TAG#g" cargo.toml | ||
- name: Build wheels | ||
working-directory: src/bendpy | ||
uses: PyO3/maturin-action@v1 | ||
Check failure on line 40 in .github/workflows/bindings_python.yml GitHub Actions / Python Release BuildInvalid workflow file
|
||
env: | ||
RUST_BACKTRACE: 1 | ||
with: | ||
rust-toolchain: nightly | ||
target: x86_64 | ||
manylinux: auto | ||
# Keep them in one line due to https://github.com/PyO3/maturin-action/issues/153 | ||
rustup-components: rust-std rustfmt | ||
args: --release --strip --manylinux 2014 --sdist --out dist | ||
- name: Publish package to PyPI | ||
working-directory: src/bendpy | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
password: ${{ secrets.PYPI_API_TOKEN }} | ||
repository-url: https://pypi.org/project/databend/ | ||
packages-dir: dist/ |