Updated workflow
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
- test
|
- test
|
||||||
|
- deploy
|
||||||
|
|
||||||
build:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
@@ -27,3 +28,16 @@ test:
|
|||||||
paths:
|
paths:
|
||||||
- target/
|
- target/
|
||||||
- ~/.cargo/
|
- ~/.cargo/
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
stage: deploy
|
||||||
|
image: rust:1.85
|
||||||
|
script:
|
||||||
|
- echo "Printing environment"
|
||||||
|
- env
|
||||||
|
- cargo login "$CARGO_LOGIN_TOKEN"
|
||||||
|
- cargo publish
|
||||||
|
dependencies:
|
||||||
|
- build
|
||||||
|
rules:
|
||||||
|
- if: '$CI_COMMIT_TAG'
|
||||||
|
@@ -1,5 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "icarus-models"
|
name = "icarus-models"
|
||||||
|
description = "models used for the icarus project"
|
||||||
|
license = "MIT"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user