Skip to content

Commit

Permalink
Upload folder instead of .wasm file
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 2cd9f5a commit ce76e4c
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 @@ -32,15 +32,13 @@ jobs:
run: |
wash new actor --path rust hello
wash build -p hello
mkdir -p ./rust/build
cp hello/build/hello.wasm ./rust/build/hello.wasm
shell: bash
working-directory: ${{ env.working-directory }}
- name: Upload signed actor to GH Actions
uses: actions/upload-artifact@v3
with:
name: wasmcloud-actor
path: ${{ env.working-directory }}/rust/build/*.wasm
path: ${{ env.working-directory }}/hello

artifact_release:
needs: build_signed_actor
Expand All @@ -52,7 +50,7 @@ jobs:
uses: actions/download-artifact@v3
with:
name: wasmcloud-actor
path: ${{ env.working-directory }}/rust/build
path: ${{ env.working-directory }}
- name: Determine actor name
run: |
echo "actor-name=$(cargo metadata --no-deps --format-version 1 | jq -r '.packages[].name')" >> $GITHUB_ENV
Expand All @@ -70,7 +68,7 @@ jobs:
- name: Push actor to AzureCR
uses: wasmcloud/common-actions/oci-artifact-release@main
with:
artifact-path: ${{ env.working-directory }}/rust/build/${{ env.actor-name }}_s.wasm
artifact-path: ${{ env.working-directory }}/hello/build/${{ env.actor-name }}_s.wasm
oci-url: ${{ secrets.AZURECR_PUSH_URL }}
oci-repository: ${{ env.actor-name }}
oci-version: ${{ env.actor-version }}
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 @@ -32,15 +32,13 @@ jobs:
run: |
wash new actor --path rust kvcounter
wash build -p kvcounter
mkdir -p ./rust/build
cp kvcounter/build/kvcounter.wasm ./rust/build/kvcounter.wasm
shell: bash
working-directory: ${{ env.working-directory }}
- name: Upload signed actor to GH Actions
uses: actions/upload-artifact@v3
with:
name: wasmcloud-actor
path: ${{ env.working-directory }}/rust/build/*.wasm
path: ${{ env.working-directory }}/hello

artifact_release:
needs: build_signed_actor
Expand All @@ -52,7 +50,7 @@ jobs:
uses: actions/download-artifact@v3
with:
name: wasmcloud-actor
path: ${{ env.working-directory }}/rust/build
path: ${{ env.working-directory }}
- name: Determine actor name
run: |
echo "actor-name=$(cargo metadata --no-deps --format-version 1 | jq -r '.packages[].name')" >> $GITHUB_ENV
Expand All @@ -70,7 +68,7 @@ jobs:
- name: Push actor to AzureCR
uses: wasmcloud/common-actions/oci-artifact-release@main
with:
artifact-path: ${{ env.working-directory }}/rust/build/${{ env.actor-name }}_s.wasm
artifact-path: ${{ env.working-directory }}/kvcounter/build/${{ env.actor-name }}_s.wasm
oci-url: ${{ secrets.AZURECR_PUSH_URL }}
oci-repository: ${{ env.actor-name }}
oci-version: ${{ env.actor-version }}
Expand Down

0 comments on commit ce76e4c

Please sign in to comment.