Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
established working directory for example releases
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksmtownsend committed Feb 8, 2021
1 parent 7ad5bd6 commit f1d58ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/kvcounter-as-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,15 @@ jobs:
sudo apt install wash
- name: npm install
run: npm install
working-directory: ${{ env.working-directory }}
- name: npm build
run: npm run build
working-directory: ${{ env.working-directory }}
- name: Wash Sign Claim
run: |
VERSION=$(cat package.json | jq ".version" | tr -d "\"")
wash claims sign build/kvcounter-as.wasm --disable-keygen -c wasmcloud:keyvalue -c wasmcloud:httpserver --name "Key Value Counter" --ver $VERSION --rev ${{ env.REVISION }}
working-directory: ${{ env.working-directory }}
# Push artifact to https://AZURECR/kvcounter-as:VERSION
- name: push-artifact
run: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/kvcounter-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,12 @@ jobs:
sudo apt install wash
- name: Build
run: cargo build --release
working-directory: ${{ env.working-directory }}
- name: Wash Sign Claim
run: |
VERSION=$(cargo metadata --no-deps --format-version 1 | jq -r '.packages[].version')
wash claims sign target/wasm32-unknown-unknown/release/kvcounter.wasm --disable-keygen -c wasmcloud:keyvalue -c wasmcloud:httpserver --name "Key Value Counter" --ver $VERSION --rev ${{ env.REVISION }}
working-directory: ${{ env.working-directory }}
# Push artifact to https://AZURECR/kvcounter:VERSION
- name: push-artifact
run: |
Expand Down

0 comments on commit f1d58ed

Please sign in to comment.