Skip to content

Commit

Permalink
Fix actor name and version env vars
Browse files Browse the repository at this point in the history
Signed-off-by: aish-where-ya <[email protected]>
  • Loading branch information
aish-where-ya committed Aug 31, 2023
1 parent f2d6be3 commit 2cd9f5a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/release-hello-world.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ jobs:
with:
name: wasmcloud-actor
path: ${{ env.working-directory }}/rust/build/*.wasm
- name: Remove project
run: rm -rf ${{ env.working-directory }}/hello

artifact_release:
needs: build_signed_actor
Expand All @@ -58,17 +56,17 @@ jobs:
- name: Determine actor name
run: |
echo "actor-name=$(cargo metadata --no-deps --format-version 1 | jq -r '.packages[].name')" >> $GITHUB_ENV
working-directory: ${{ env.working-directory }}/rust
working-directory: ${{ env.working-directory }}/hello
- name: Determine actor version
if: startswith(github.ref, 'refs/tags/') # Only run on tag push
run: |
echo "actor-version=$(cargo metadata --no-deps --format-version 1 | jq -r '.packages[].version')" >> $GITHUB_ENV
working-directory: ${{ env.working-directory }}/rust
working-directory: ${{ env.working-directory }}/hello
- name: Determine actor version (main)
if: ${{ !startswith(github.ref, 'refs/tags/') }}
run: |
echo "actor-version=latest" >> $GITHUB_ENV
working-directory: ${{ env.working-directory }}/rust
working-directory: ${{ env.working-directory }}/hello
- name: Push actor to AzureCR
uses: wasmcloud/common-actions/oci-artifact-release@main
with:
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/release-kvcounter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ jobs:
with:
name: wasmcloud-actor
path: ${{ env.working-directory }}/rust/build/*.wasm
- name: Remove project
run: rm -rf ${{ env.working-directory }}/kvcounter

artifact_release:
needs: build_signed_actor
Expand All @@ -58,17 +56,17 @@ jobs:
- name: Determine actor name
run: |
echo "actor-name=$(cargo metadata --no-deps --format-version 1 | jq -r '.packages[].name')" >> $GITHUB_ENV
working-directory: ${{ env.working-directory }}/rust
working-directory: ${{ env.working-directory }}/kvcounter
- name: Determine actor version
if: startswith(github.ref, 'refs/tags/') # Only run on tag push
run: |
echo "actor-version=$(cargo metadata --no-deps --format-version 1 | jq -r '.packages[].version')" >> $GITHUB_ENV
working-directory: ${{ env.working-directory }}/rust
working-directory: ${{ env.working-directory }}/kvcounter
- name: Determine actor version (main)
if: ${{ !startswith(github.ref, 'refs/tags/') }}
run: |
echo "actor-version=latest" >> $GITHUB_ENV
working-directory: ${{ env.working-directory }}/rust
working-directory: ${{ env.working-directory }}/kvcounter
- name: Push actor to AzureCR
uses: wasmcloud/common-actions/oci-artifact-release@main
with:
Expand Down

0 comments on commit 2cd9f5a

Please sign in to comment.