diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1cfec1b..6465d37 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,7 +2,7 @@ name: Run tests on: push: - branches: [ develop ] + branches: [ master, develop ] pull_request: branches: [ master, develop ] diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..7bd1aa1 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,24 @@ +name: Deploy to Crates IO + +on: + push: + tags: + - 'v*' # Trigger the workflow when a tag starting with 'v' is pushed, like v1.0.0 + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v5 + + - name: Setup Rust + uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + toolchain: stable + + - name: Deploy to Crates IO + run: | + cargo publish \ + --token ${{ secrets.CRATES_IO_TOKEN }} diff --git a/Cargo.toml b/Cargo.toml index 6e3f5d8..a549dd6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "phenopackets" -version = "0.2.2-post1" +version = "0.2.2-post2" authors = ["Daniel Danis", "Daniel Danis "] edition = "2021" description = "Rust bindings for Phenopacket Schema" @@ -17,13 +17,13 @@ maintenance = { status = "experimental" } serde = ["serde/derive"] [dependencies] -prost = "0.13" -prost-types = "0.13" -serde = { version = "1.0.219", optional = true } +prost = "0.14" +prost-types = "0.14" +serde = { version = "1.0", optional = true } [dev-dependencies] -serde = "1.0.219" -serde_json = "1.0.140" +serde = "1.0" +serde_json = "1.0" [build-dependencies] -prost-build = "0.13" +prost-build = "0.14"