diff --git a/.github/workflows/release-wasm.yml b/.github/workflows/release-wasm.yml index fb46c838d..1a7cfb2e9 100644 --- a/.github/workflows/release-wasm.yml +++ b/.github/workflows/release-wasm.yml @@ -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: | @@ -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}}