Skip to content

Commit

Permalink
deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
drahnr committed Feb 2, 2022
1 parent a802cd8 commit a6872cf
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 14 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,25 @@ jobs:
with:
toolchain: stable

- name: get sd
uses: robinraju/[email protected]
with:
repository: "chmln/sd"
tag: "v0.7.6"
fileName: "sd-v0.7.6-x86_64-unknown-linux-musl"

run: |
mkdir -pv ${GITHUB_WORKSPACE}/bin
mv -v sd-v0.7.6-x86_64-unknown-linux-musl ${GITHUB_WORKSPACE}/bin/sd
echo "::add-path::${GITHUB_WORKSPACE}/bin"
chmod +x "${GITHUB_WORKSPACE}/bin/sd"
- name: set version to tag version
uses: actions-rs/cargo@v1
with:
command: run
args: --release -- version set $(git tag --contains HEAD --format='%(refname)' | sd '^refs/tags/v([0-9]+\.[0-9]+\.[0-9]+(?:-[A-Za-z0-9]+(?:\.[0-9]+)?)?)$' '$1' )

- name: Deploy by self
uses: actions-rs/cargo@v1

Expand Down
26 changes: 13 additions & 13 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 Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cargo-unleash"
version = "1.0.0-alpha.dev"
version = "1.0.0-alpha.14"
authors = ["Benjamin Kampmann <[email protected]>"]
edition = "2021"
rust-version = "1.56.1"
Expand Down

0 comments on commit a6872cf

Please sign in to comment.