Skip to content

fixed CI not working with deprecated package #4

fixed CI not working with deprecated package

fixed CI not working with deprecated package #4

Workflow file for this run

name: Cargo Release
on:
release:
types:
- released
pull_request:
jobs:
publish:
name: Build & Publish to Crates.io
runs-on: ubuntu-latest
steps:
- name: Clean variable
id: version
run: |
TAG="v3.2.1
echo "VERSION=${TAG#v}" >> $GITHUB_ENV
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- run: pip install toml-cli
- name: Edit Toml version
run: toml set --toml-path Cargo.toml package.version $VERSION
env:
VERSION: "${{ steps.version.outputs.VERSION }}"
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- run: cat Cargo.toml
- uses: katyo/publish-crates@v2
if: github.event_name == 'push'
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}