Skip to content

Commit

Permalink
adding ci publish
Browse files Browse the repository at this point in the history
  • Loading branch information
luccabb committed Feb 5, 2025
1 parent 40b104b commit 83df0a8
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/python-build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Python Wheels
name: Build and Publish

on:
push:
Expand Down Expand Up @@ -64,8 +64,8 @@ jobs:
cratesio-release:
name: Publish to Crates.io
runs-on: ubuntu-latest
# environment: cratesio-publish
# if: startsWith(github.ref, 'refs/tags/')
environment: cratesio-publish
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout Code
uses: actions/checkout@v3
Expand All @@ -76,9 +76,7 @@ jobs:
toolchain: stable
override: true

- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
# - name: Publish to crates.io
# env:
# CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
# run: cargo publish
- name: Publish to crates.io
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: cargo publish

0 comments on commit 83df0a8

Please sign in to comment.