Skip to content

0.1.81

0.1.81 #139

name: Publish to Crates.io
on:
release:
types:
- created
workflow_dispatch:
permissions:
contents: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
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
- name: Publish crates for llama-cpp-2
run: RUST_BACKTRACE=1 cargo publish --package llama-cpp-2 --token ${{ secrets.CARGO_REGISTRY_TOKEN }} --verbose
# Trigger the 'update-toml-version' workflow
- name: Dispatch Update TOML Version Event
if: success() # Ensure this runs only if the previous steps were successful
run: |
curl -X POST \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.everest-preview+json" \
"https://api.github.com/repos/${{ github.repository }}/dispatches" \
-d '{"event_type": "trigger-update-toml-version"}'