mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-07-08 01:15:00 +00:00
automate crate publishing
This introduces a new section of the GitHub Actions workflow which will publish the crate upon a new tag being pushed. Note that this requires a new project secret, `CRATES_TOKEN`.
This commit is contained in:
parent
f053383c71
commit
bc9bfaeb84
1 changed files with 13 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
|
uses: coverallsapp/github-action@master
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
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