From 1808d84c4880872ec1498e64c6a624c7154d4bc8 Mon Sep 17 00:00:00 2001 From: Stefano Simonelli <16114781+s-simoncelli@users.noreply.github.com> Date: Mon, 26 Aug 2024 13:50:18 +0100 Subject: [PATCH] Added new workflow to publish crate on crate.io --- .github/workflows/release-crate.yaml | 21 +++++++++++++++++++++ README.md | 4 ++-- 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/release-crate.yaml diff --git a/.github/workflows/release-crate.yaml b/.github/workflows/release-crate.yaml new file mode 100644 index 0000000..207db5e --- /dev/null +++ b/.github/workflows/release-crate.yaml @@ -0,0 +1,21 @@ +name: Release on crate.io + +on: + push: + branches: [ main ] + tags: + - '*' + pull_request: + +env: + CARGO_TERM_COLOR: always + +jobs: + publish-crate: + name: Cargo publish + runs-on: ubuntu-latest + if: "startsWith(github.ref, 'refs/tags/')" + steps: + - uses: actions/checkout@v4 + - name: Publish + run: cargo publish --verbose -p optirustic \ No newline at end of file diff --git a/README.md b/README.md index c279bc6..8d21b38 100644 --- a/README.md +++ b/README.md @@ -106,7 +106,7 @@ impl Evaluator for SCHProblem { } ``` -
+ ### Setup and run the genetic algorithm @@ -158,7 +158,7 @@ and these are the plotted solutions: - + # License