Skip to content

Commit

Permalink
v0.4.4 version fix (#11)
Browse files Browse the repository at this point in the history
* fix version display + artifact name

* fix ci
  • Loading branch information
dadleyy authored Feb 9, 2022
1 parent 69877f3 commit d2ba010
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 67 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
runs-on: ubuntu-latest
container:
image: rust:1.58.1
env:
TWOWAIYO_VERSION: "${{ github.sha }}"
steps:
- uses: actions/checkout@v2
- name: Update apt
Expand Down Expand Up @@ -53,14 +55,9 @@ jobs:
- name: Populate distributable (boxbot)
run: cp target/armv7-unknown-linux-gnueabihf/release/boxbot target/dist/twowaiyo/boxbot
- name: Compress distributable
run: tar cvzf ./twowaiyo-armv7-unknown-linux-gnueabihf.tar.gz -C target/dist twowaiyo
run: tar cvzf ./twowaiyo-armv7-unknown-linux-gnueabihf-$GITHUB_SHA.tar.gz -C target/dist twowaiyo
- name: Create Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ./twowaiyo-armv7-unknown-linux-gnueabihf.tar.gz
################################################################
# the following workflow have been deprecated:
# - https://github.com/actions/create-release
# - https://github.com/actions/upload-release-asset
################################################################
files: "./twowaiyo-armv7-unknown-linux-gnueabihf-${{ github.sha }}.tar.gz"
109 changes: 54 additions & 55 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion workspace/bankah/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bankah"
version = "0.4.3"
version = "0.4.4"
edition = "2018"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion workspace/stickbot/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "stickbot"
version = "0.4.3"
version = "0.4.4"
edition = "2018"

[lib]
Expand Down
4 changes: 2 additions & 2 deletions workspace/stickbot/src/services.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,13 +233,13 @@ impl Services {
db: mongo,
rc: rc,
redis: Arc::new(Mutex::new(redis)),
version: std::option_env!("STICKBOT_VERSION").unwrap_or("dev").to_string(),
version: std::option_env!("TWOWAIYO_VERSION").unwrap_or("dev").to_string(),
})
}
}

impl std::fmt::Display for Services {
fn fmt(&self, formatter: &mut std::fmt::Formatter) -> std::fmt::Result {
write!(formatter, "stickbot-services@v{}", self.version)
write!(formatter, "stickbot-services@{}", self.version)
}
}
2 changes: 1 addition & 1 deletion workspace/twowaiyo/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "twowaiyo"
version = "0.4.3"
version = "0.4.4"
edition = "2018"

[lib]
Expand Down

0 comments on commit d2ba010

Please sign in to comment.