Skip to content

Commit

Permalink
try to upload binary with version number
Browse files Browse the repository at this point in the history
  • Loading branch information
tiye committed Apr 28, 2021
1 parent cf6c90c commit d1137ab
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
flags: "-avzr --progress"
options: ""
ssh_options: ""
src: "target/release/calcit_runner"
src: "builds/*"
dest: "rsync-user@calcit-lang.org:/web-assets/repo/calcit-lang/binaries/linux/"

- name: Display status from deploy
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ js-out/
node_modules/

lib/*.js
builds/
8 changes: 8 additions & 0 deletions scripts/cp-version.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
let fs = require("fs");
let pkg = require("../package.json");

if (!fs.existsSync("builds")) {
fs.mkdirSync("builds/");
}
fs.copyFileSync("target/release/calcit_runner", "builds/calcit_runner");
fs.copyFileSync("builds/calcit_runner", `builds/calcit_runner_${pkg.version}`);
2 changes: 1 addition & 1 deletion src/cli_args.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pub const CALCIT_VERSION: &str = "0.3.0-a9";
pub const CALCIT_VERSION: &str = env!("CARGO_PKG_VERSION");

pub fn parse_cli<'a>() -> clap::ArgMatches<'a> {
clap::App::new("Calcit Runner")
Expand Down

0 comments on commit d1137ab

Please sign in to comment.