Skip to content

Commit

Permalink
Update vdot.rb and update version number in build
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Parkinson committed Oct 22, 2019
1 parent 44d0c6a commit 51879a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ jobs:
shell: bash
run: echo ::set-output name=upload_url::$(curl https://github.com/gitapi/repos/${{ github.repository }}/releases/tags/${{ steps.tag.outputs.tag }} | jq -r '.upload_url')

- name: Update the version in Cargo.toml
shell: bash
run: perl -i -pe "s/\"0.0.0\"/\"${{ steps.version.outputs.version }}\"/" Cargo.toml

- name: Install apt packages
if: matrix.item.os == 'ubuntu-latest'
shell: bash
Expand Down Expand Up @@ -89,7 +93,6 @@ jobs:
- name: Calculate the sha256 of the artifact
shell: bash
run: openssl dgst -sha256 "target/vdot-${{ steps.tag.outputs.tag }}-${{ matrix.item.target }}.zip"
continue-on-error: true

- name: Upload artifacts to GitHub release
uses: actions/upload-release-asset@master
Expand Down
6 changes: 3 additions & 3 deletions vdot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
class Vdot < Formula
desc "Create your .env files and start processes using Vault"
homepage "https://github.com/sjparkinson/vdot"
version "0.3.7"
version "0.3.21"

if OS.mac?
url "https://github.com/sjparkinson/vdot/releases/download/v#{version}/vdot-v#{version}-x86_64-apple-darwin.zip"
sha256 "d27cbe0401311ef9c8f722e1cd9a6cc5638f0bc16890e388e13a70dcfec1b2de"
sha256 "644c9d210cf36ed671275e0a5c3e8aa4d73a280589c5c3715b985e76ff554f9d"
elsif OS.linux?
url "https://github.com/sjparkinson/vdot/releases/download/v#{version}/vdot-v#{version}-x86_64-unknown-linux-musl.zip"
sha256 "13d1301fbf544784c198a0b9f6e43c942383664857b030ff1810785448916f10"
sha256 "9be5063359384a39353dabfd787bf2875dbcdd16b6cd6e65efa827ca6b629852"
end

def install
Expand Down

0 comments on commit 51879a8

Please sign in to comment.