From c719229485ce4f9c72003771a9c0f725202b77c5 Mon Sep 17 00:00:00 2001 From: Danny Willems Date: Thu, 14 Dec 2023 21:40:47 +0100 Subject: [PATCH] Remove publish job on tags --- .github/workflows/publish.yml | 56 ----------------------------------- 1 file changed, 56 deletions(-) delete mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 76bb9b9..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,56 +0,0 @@ -name: Publishing to crates.io on tags - -on: - push: - tags: - - "*" - -env: - # https://doc.rust-lang.org/cargo/reference/profiles.html#release - RUSTFLAGS: -Coverflow-checks=y -Cdebug-assertions=y - # https://doc.rust-lang.org/cargo/reference/profiles.html#incremental - CARGO_INCREMENTAL: "1" - # https://nexte.st/book/pre-built-binaries.html#using-nextest-in-github-actions - CARGO_TERM_COLOR: always - # Rust version to use to build - RUST_VERSION: "1.69" - # OCaml version to use to build - OCAML_VERSION: "4.14" - -jobs: - publish_crate: - runs-on: ubuntu-latest - name: Publish on crates.io - steps: - - name: Checkout to tag - uses: actions/checkout@v2 - - # as action-rs does not seem to be maintained anymore, building from - # scratch the environment using rustup - - name: Setup Rust toolchain ${{ env.RUST_VERSION }} - run: - | - curl --proto '=https' --tlsv1.2 -sSf -o rustup-init \ - https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init - chmod +x ./rustup-init - ./rustup-init -y --default-toolchain "${{ env.RUST_VERSION }}" --profile default - rm ./rustup-init - echo "$HOME/.cargo/bin" >> $GITHUB_PATH - # overwriting default rust-toolchain - echo ${{ env.RUST_VERSION }} > rust-toolchain - - - name: Setup OCaml ${{ env.OCAML_VERSION }} - uses: ocaml/setup-ocaml@v2 - with: - ocaml-compiler: ${{ env.OCAML_VERSION }} - # https://github.com/ocaml/setup-ocaml/issues/211#issuecomment-1058882386 - # disable-cache: true - - - name: Publish to crates.io - run: - | - eval $(opam env) - cargo publish -p ocaml-gen --manifest-path ocaml-gen/Cargo.toml --token ${CRATES_IO_TOKEN} - cargo publish -p ocaml-gen-derive --manifest-path ocaml-gen/derive/Cargo.toml --token ${CRATES_IO_TOKEN} - env: - CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}