diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2668a41b..e066c84b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -28,18 +28,27 @@ jobs: run: |- ls -l artifacts cat artifacts/checksums.txt - - name: Publish artifacts on GitHub - run: |- - GITHUB_TOKEN="${{ github.token }}" - TAG="${{ github.ref }}" - TITLE="$TAG" - BODY="Attached there are some build artifacts generated at this tag. Those are for development purposes only! Please use crates.io to find the packages of this release." - /tmp/bin/ghr -t "$GITHUB_TOKEN" \ - -u "$CIRCLE_PROJECT_USERNAME" -r "${{ github.repository }}" \ - -c "${{ github.sha }}" \ - -n "$TITLE" -b "$BODY" \ - -replace \ - "$TAG" ./artifacts/ + - name: Create a Release + id: create-release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ github.token }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + body: | + Attached there are some build artifacts generated at this tag. Those are for development purposes only! Please use crates.io to find the packages of this release. + draft: false + prerelease: false + - name: Upload babylon_contract + id: upload-babylon_contract + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ github.token }} + with: + upload_url: ${{ steps.create-release.outputs.upload_url }} + asset_path: ./artifacts/babylon_contract.wasm + asset_name: babylon_contract.wasm build_and_upload_schemas: runs-on: ubuntu-latest steps: