Skip to content

Commit

Permalink
Add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
chmp committed Feb 13, 2023
1 parent fb8a91d commit 9a1a270
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Release

on:
release:
types: [published]

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

steps:
- uses: actions/checkout@v3
- name: rustc
run: rustc --version
- name: cargo version
run: cargo --version
- name: Run tests
run: cargo test --verbose --features arrow2
- name: Publish to crates.io
working-directory: serde_arrow
run: cargo publish
6 changes: 3 additions & 3 deletions .github/workflows/rust.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Rust
name: Test

on:
push:
Expand All @@ -16,9 +16,9 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: rustc
- name: rustc
run: rustc --version
- name: cargo version
- name: cargo version
run: cargo --version
- name: Build
run: cargo build --verbose --features arrow2
Expand Down

0 comments on commit 9a1a270

Please sign in to comment.