Skip to content

Publish to Crates.io #49

Publish to Crates.io

Publish to Crates.io #49

name: Publish to Crates.io
on:
release:
types:
- created
workflow_dispatch:
permissions:
contents: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Publish crates for llama-cpp-sys-2
run: RUST_BACKTRACE=1 cargo publish --package llama-cpp-sys-2 --token ${{ secrets.CARGO_REGISTRY_TOKEN }} --verbose --dry-run
# - name: Publish crates for llama-cpp-2
# run: RUST_BACKTRACE=1 cargo publish --package llama-cpp-2 --token ${{ secrets.CARGO_REGISTRY_TOKEN }} --verbose --dry-run
# Trigger the 'update-toml-version' workflow
- name: Trigger update-toml-version workflow
env:
GH_TOKEN: ${{ github.token }}
run: |
gh workflow run update-toml-version.yaml -R owner/repo