Skip to content

Commit

Permalink
chore: publish cargo on release
Browse files Browse the repository at this point in the history
  • Loading branch information
polarmutex committed Nov 11, 2021
1 parent 79ae7c1 commit 78b8ddc
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 3 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release

on:
push:
tags:
- "v*.*.*"

jobs:
publish-cargo:
name: Publish Crate
runs-on: ubuntu-latest
steps:
- name: Installing Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Checking out sources
uses: actions/checkout@v1
- name: Cache Cargo
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-publish-${{ hashFiles('**/Cargo.lock') }}
- name: Installing dependencies
run: |
sudo apt-get update
sudo apt-get install -y -qq pkg-config libssl-dev
- uses: actions-rs/cargo@v1
with:
command: publish
args: --token ${{ secrets.CARGO_API_KEY }} --allow-dirty
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[package]
name = "tree-sitter-beancount"
description = "beancount grammar for the tree-sitter parsing library"
version = "0.0.1"
keywords = ["incremental", "parsing", "beancount"]
version = "2.0.0"
keywords = ["incremental", "parsing", "beancount", "tree-sitter"]
categories = ["parsing", "text-editors"]
repository = "https://github.com/tree-sitter/tree-sitter-beancount"
repository = "https://github.com/polarmutex/tree-sitter-beancount"
edition = "2018"
license = "MIT"

Expand Down

0 comments on commit 78b8ddc

Please sign in to comment.