Skip to content

fix: ci names (#4)

fix: ci names (#4) #5

Workflow file for this run

name: release
on:
push:
tags:
- 'v*.*.*'
jobs:
artifact:
permissions:
contents: write
pull-requests: write
name: artifact
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: software-mansion/setup-scarb@v1
- name: Build contracts
run: scarb build
- name: Archive contracts
run: |
mkdir -p filtered_artifacts
find ./target/dev -type f -name '*.contract_class.json' -exec cp {} filtered_artifacts/ \;
- name: Generate checksums
run: |
cd filtered_artifacts
for file in *; do
sha256sum "$file" > "$file.sha256"
md5sum "$file" > "$file.md5"
done
- name: Build artifact zip
run: |
cd filtered_artifacts
zip -r ../hyerlane-starknet-${{ github.ref_name }}.zip .
cd ..
sha256sum hyerlane-starknet-${{ github.ref_name }}.zip > hyerlane-starknet-${{ github.ref_name }}.CHECKSUM
md5sum hyerlane-starknet-${{ github.ref_name }}.zip > hyerlane-starknet-${{ github.ref_name }}.CHECKSUM.MD5
- name: Find zip files
run: |
find ./filtered_artifacts -type f -name '*.zip' -exec echo "::set-output name=zip_files::{}" \;
id: find_zip_files
- name: Release Artifact
uses: softprops/action-gh-release@v1
with:
files: |
hyerlane-starknet-${{ github.ref_name }}.zip
hyerlane-starknet-${{ github.ref_name }}.CHECKSUM
hyerlane-starknet-${{ github.ref_name }}.CHECKSUM.MD5