diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a42f49f..cf55317 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,16 +31,16 @@ jobs: - name: Build run: cargo build --release + - name: Publish to Crates.io + run: | + cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }} + - name: Bundle release artifacts run: | mkdir release mv src/jtd-wrapper.sh release/jtd.sh mv target/release/jtd release/jtd - - name: Publish to Crates.io - run: | - cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }} - - name: Publish to GitHub uses: softprops/action-gh-release@v1 with: diff --git a/README.md b/README.md index a0634e1..5af0809 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ # Join The Dots +[![Release](https://github.com/dob9601/jointhedots/actions/workflows/release.yml/badge.svg)](https://github.com/dob9601/jointhedots/actions/workflows/release.yml) +[![Test](https://github.com/dob9601/jointhedots/actions/workflows/test.yml/badge.svg)](https://github.com/dob9601/jointhedots/actions/workflows/test.yml) + ![Demo](https://user-images.githubusercontent.com/24723950/152683893-eca67fa3-96bd-4c79-9cf4-a1283a73b61d.gif) ``` jointhedots