summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Geary <rtgnj42@gmail.com>2020-06-16 20:03:07 -0400
committerRyan Geary <rtgnj42@gmail.com>2020-06-16 20:03:07 -0400
commit0e422090d33da2f320a77fd128554635ba7aacba (patch)
treeb07e1750f8f940419e8ccee7ab603a313db2935f
parent04af6f2304c81ee42c71a2bb3c7335693a05ff22 (diff)
Add crates.io GitHub action
-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 }}