From 18397edcdb27a6ceca856cde88b1c344faeeaaff Mon Sep 17 00:00:00 2001 From: Alex Mootz Date: Thu, 19 Oct 2023 15:52:18 -0400 Subject: [PATCH] ci: add cargo publish action --- .github/workflows/cargo_publish.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/cargo_publish.yml diff --git a/.github/workflows/cargo_publish.yml b/.github/workflows/cargo_publish.yml new file mode 100644 index 0000000..9b46412 --- /dev/null +++ b/.github/workflows/cargo_publish.yml @@ -0,0 +1,16 @@ +name: Cargo Publish + +on: + release: + types: [published] + +jobs: + + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - run: rustup update + - run: cargo publish -p sep-40-oracle + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} \ No newline at end of file