From 3df9bb3217574a4f7c382010dac1c49ab4b3e2d1 Mon Sep 17 00:00:00 2001 From: Wesley Wiser Date: Wed, 10 Jan 2024 09:28:49 -0600 Subject: [PATCH] Add GitHub Workflow for publishing measureme --- .github/workflows/publish.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..a7d198c --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,17 @@ +name: Publish +on: + release: + types: [created] + +jobs: + publish: + name: Publish to crates.io + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Install Rust (rustup) + run: rustup update stable && rustup default stable + - name: Publish + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} + run: cargo publish -p measureme