Skip to content

Commit

Permalink
Merge pull request #19 from datafuselabs/sundy-li-patch-3
Browse files Browse the repository at this point in the history
  • Loading branch information
sundy-li authored Jun 8, 2023
2 parents 1d5c442 + cb1f1ae commit 7ef2abe
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: publish

on:
push:
branches:
- main
paths:
- '**/Cargo.toml'

jobs:
crates:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Cargo Release
run: |
curl -fsSLo /tmp/cargo-release.tar.gz https://github.com/crate-ci/cargo-release/releases/download/v0.24.8/cargo-release-v0.24.8-x86_64-unknown-linux-gnu.tar.gz
mkdir -p /tmp/cargo-release
tar -C /tmp/cargo-release -xzf /tmp/cargo-release.tar.gz
sudo mv /tmp/cargo-release/cargo-release /usr/local/bin
- name: Release to crates.io
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: |
cargo release publish --execute --no-confirm

0 comments on commit 7ef2abe

Please sign in to comment.