Skip to content

Commit

Permalink
Merge pull request #24 from s-simoncelli/add-new-cargo-publish-ci
Browse files Browse the repository at this point in the history
Added new workflow to publish crate on crate.io
  • Loading branch information
s-simoncelli authored Aug 26, 2024
2 parents 088ec44 + 1808d84 commit cd25342
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/release-crate.yaml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ impl Evaluator for SCHProblem {
}
```

<p align="right">(<a href="#readme-top">back to top</a>)</p>
<p align="right">(<a href="#optirustic">back to top</a>)</p>

### Setup and run the genetic algorithm

Expand Down Expand Up @@ -158,7 +158,7 @@ and these are the plotted solutions:
<img src="examples/results/SCH_2obj_NSGA2_solutions.png" width="300" alt="Results" />
</div>

<p align="right">(<a href="#readme-top">back to top</a>)</p>
<p align="right">(<a href="#optirustic">back to top</a>)</p>

# License

Expand Down

0 comments on commit cd25342

Please sign in to comment.