From 9d106c61e79b852435b5895516b6902c47c98a98 Mon Sep 17 00:00:00 2001 From: Emile Fugulin Date: Sat, 23 Nov 2024 21:31:51 -0500 Subject: [PATCH] Add publish script --- .github/workflows/publish.yml | 24 ++++++++++++++++++++++++ Cargo.toml | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) 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..2712bf7 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,24 @@ +name: Publish +on: + push: + tags: + - 'v[0-9]+.[0-9]+.[0-9]+*' + +jobs: + publish: + if: github.repository == 'rquickjs/rquickjs-module' + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Rust + uses: dtolnay/rust-toolchain@315e265cd78dad1e1dcf3a5074f6d6c47029d5aa + with: + toolchain: stable + + - name: Publish crates + uses: katyo/publish-crates@c9f6fdb4620c98d491ffaa6e563cb87388bd6ece + with: + registry-token: ${{ secrets.CRATES_TOKEN }} + no-verify: true diff --git a/Cargo.toml b/Cargo.toml index 5a3dd07..4d6ea3f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rquickjs-module" -version = "0.1.0" +version = "0.0.1" edition = "2021" [dependencies]