From 09a1296ee6b57ac27c9dee0733b240e4c1e7b5ac Mon Sep 17 00:00:00 2001 From: Jason Williams <936006+jasonwilliams@users.noreply.github.com> Date: Fri, 2 Oct 2020 02:39:33 +0100 Subject: [PATCH] Add release action (#739) --- .github/workflows/release.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000000..101f2ceed2 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,17 @@ +name: Publish Release +on: + release: + types: [published] + +jobs: + publish: + runs-on: ubuntu-latest + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} + steps: + - name: Git Checkout + uses: actions/checkout@v2 + with: + ref: ${{ github.sha }} + - run: cargo login ${CARGO_REGISTRY_TOKEN} + - run: cargo publish