Skip to content

Commit

Permalink
add version updates and add release action
Browse files Browse the repository at this point in the history
  • Loading branch information
iblacksand committed Jan 11, 2024
1 parent da0a57d commit 6474049
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 5 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Rust
on:
push:
branches: [ "master" ]
tags:
- '*'
pull_request:
branches: [ "master" ]

Expand All @@ -20,3 +22,35 @@ jobs:
run: cargo build --verbose
- name: Run tests
run: cargo test --all --verbose

release:
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/')"
needs: build
environment: release
permissions:
id-token: write
steps:
- name: Install cargo binstall
uses: cargo-bins/cargo-binstall@main
- name: cargo-release Cache
id: cargo_release_cache
uses: actions/cache@v3
with:
path: ~/.cargo/bin/cargo-release
key: ${{ runner.os }}-cargo-release
- name: Install cargo release
if: steps.cargo_release_cache.outputs.cache-hit != 'true'
run: cargo binstall cargo-release
- name: cargo login
run: cargo login
- name: "cargo release publish"
run: |-
cargo release \
publish \
--workspace \
--all-features \
--allow-branch HEAD \
--no-confirm \
--no-verify \
--execute
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[package]
name = "webgestalt"
version = "0.1.0"
version = "0.1.1"
authors = ["John Elizarraras"]
edition = "2021"
rust-version = "1.63.0"
Expand All @@ -16,7 +16,7 @@ repository = "https://github.com/bzhanglab/webgestalt_rust"
bincode = "1.3.3"
clap = { version = "4.4.15", features = ["derive"] }
owo-colors = { version = "4.0.0", features = ["supports-colors"] }
webgestalt_lib = { path = "webgestalt_lib" }
webgestalt_lib = { version = "0.1.0", path = "webgestalt_lib" }

[profile.release]
opt-level = 3
2 changes: 1 addition & 1 deletion webgestalt_lib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "webgestalt_lib"
version = "0.1.0"
version = "0.1.1"
authors = ["John Elizarraras"]
edition = "2021"
rust-version = "1.63.0"
Expand Down

0 comments on commit 6474049

Please sign in to comment.