Skip to content

Commit

Permalink
update release wasm action
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul007-bit committed Mar 1, 2024
1 parent fd513ba commit 3b67eef
Showing 1 changed file with 24 additions and 33 deletions.
57 changes: 24 additions & 33 deletions .github/workflows/release-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ jobs:
- name: Build Javy Core
working-directory: .
run: |
make add build-cors
make add all
- name: Build CLI
working-directory: .
run: |
make
make build-arakoo
- name: Build Jsonnet
working-directory: .
run: |
Expand All @@ -45,34 +45,25 @@ jobs:
path: bin/arakoo

release:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download Release Binary
uses: actions/download-artifact@v2
with:
name: arakoo
path: bin
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
Changes in this Release
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: bin/arakoo
asset_name: arakoo
asset_content_type: application/octet-stream

name: release-wasm
needs: build
runs-on: ubuntu-latest
steps:
- name: Download artifact
uses: actions/download-artifact@v2
with:
name: arakoo
path: Output
- name: Display structure of downloaded files
run: ls -R

- name: Get variables
id: vars
run: echo "tag_name=${{ env.RELEASE_TAG }}" >> $GITHUB_ENV

- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
./Output/*
tag_name: ${{ github.ref}}

0 comments on commit 3b67eef

Please sign in to comment.