summaryrefslogtreecommitdiffstats
path: root/.github/workflows/crates.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/crates.yml')
-rw-r--r--.github/workflows/crates.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/.github/workflows/crates.yml b/.github/workflows/crates.yml
new file mode 100644
index 0000000..d4cd86e
--- /dev/null
+++ b/.github/workflows/crates.yml
@@ -0,0 +1,22 @@
+name: Crates.io Release
+
+on:
+ push:
+ tags:
+ - v*
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+ - name: Check style
+ run: cargo fmt -- --check
+ - name: Build
+ run: cargo build --verbose
+ - name: Run tests
+ run: cargo test --verbose
+ - name: Publish
+ run: cargo publish --token ${{ secrets.CRATES_IO_TOKEN }}