Skip to content

Python Release Build #202

Python Release Build

Python Release Build #202

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

View workflow run for this annotation

GitHub Actions / Python Release Build

Invalid workflow file

The workflow is not valid. .github/workflows/bindings_python.yml (Line: 40, Col: 9): Unexpected value 'uses' .github/workflows/bindings_python.yml (Line: 43, Col: 9): Unexpected value 'with'
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/