Skip to content

Commit

Permalink
Use the create release action
Browse files Browse the repository at this point in the history
Also uses the upload asset action
  • Loading branch information
Mauro Lacy committed Aug 28, 2024
1 parent c1542dd commit da2130b
Showing 1 changed file with 21 additions and 12 deletions.
33 changes: 21 additions & 12 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit da2130b

Please sign in to comment.