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