diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..45701f5 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,31 @@ +name: Release +on: + push: + branches: + - release + paths: + - '**/Cargo.toml' + - '.github/workflows/release.yml' + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + - name: Checkout + uses: actions/checkout@v2 + - name: cargo login + run: cargo login ${{ secrets.CRATES_IO }} + - name: cargo package + run: | + echo "Cargo Packaging" + cargo package + echo "Cargo Packaged" + - name: Publish + run: | + echo "Cargo Publishing" + cargo publish --no-verify + echo "Cargo Published"