mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-07-07 17:04:59 +00:00
Merge pull request #238 from maxcountryman/feature/gh-action-releases
automate crate publishing
This commit is contained in:
commit
118a345790
3 changed files with 53 additions and 0 deletions
13
.github/workflows/rust.yml
vendored
13
.github/workflows/rust.yml
vendored
|
@ -63,3 +63,16 @@ jobs:
|
|||
uses: coverallsapp/github-action@master
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
publish-crate:
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
runs-on: ubuntu-latest
|
||||
needs: [test]
|
||||
steps:
|
||||
- name: Set up Rust
|
||||
uses: hecrj/setup-rust-action@v1
|
||||
- uses: actions/checkout@v2
|
||||
- name: Publish
|
||||
shell: bash
|
||||
run: |
|
||||
cargo publish --token ${{ secrets.CRATES_TOKEN }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue