Merge pull request #162 from tree-sitter/upgrade-tree-sitter #15
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 release | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
publish-crate: | |
runs-on: ubuntu-latest | |
env: | |
CARGO_TERM_COLOR: always | |
CARGO_INCREMENTAL: 0 | |
steps: | |
- name: Install Rust environment | |
uses: hecrj/setup-rust-action@v1 | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
# TODO Verify the crate version matches the tag | |
- name: Verify publish crate | |
uses: katyo/publish-crates@v1 | |
with: | |
dry-run: true | |
- name: Publish crate | |
uses: katyo/publish-crates@v1 | |
with: | |
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} | |
create-release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Create GitHub release | |
uses: ncipollo/release-action@v1 | |
with: | |
body: | | |
Find more info on all releases at https://crates.io/crates/tree-sitter-graph. | |
token: ${{ secrets.GITHUB_TOKEN }} |