0.1.53 #110
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish to Crates.io | |
on: | |
release: | |
types: | |
- created | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b | |
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"}' |