Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub actions #5

Merged
merged 8 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Classifier Release
run-name: Build classifier
on: [push]
jobs:
pypi-release:
name: Build and Release to PYPI 📦
runs-on: ubuntu-latest
environment:
name: release
url: https://pypi.org/project/python-cptv/

if: startsWith(github.ref, 'refs/tags/v')
defaults:
run:
working-directory: ./python-bindings

permissions:
id-token: write

steps:
- name: Check out repository code
uses: actions/checkout@v4
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
architecture: 'x64'

- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.77.1
override: true

- name: Display Rust and Cargo version
run: |
rustc --version
cargo --version

- name: Build release
run: |
cargo build --release

- name: Install pypa/build
run: >-
python3 -m
pip install
build maturin
--user
- name: Build a binary wheel and a source tarball
run: maturin publish
32 changes: 0 additions & 32 deletions .travis.yml

This file was deleted.