Skip to content

feat: migration to cargo near #33

feat: migration to cargo near

feat: migration to cargo near #33

on:
push:
branches: [ main, develop ]
pull_request:
workflow_dispatch:
name: Update Contracts
jobs:
update-contracts:
runs-on: ubuntu-latest
name: Update Contracts
permissions:
contents: write
steps:
- name: Clone the repository
uses: actions/checkout@v3
# - name: Install cargo-near
# run: |
# curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/cargo-near/releases/latest/download/cargo-near-installer.sh | sh
#
# - name: Build NEAR contracts
# run: |
# make -j4 rust-build-near
# timeout-minutes: 60
- name: Archive built WASM files
run: |
mkdir -p artifacts
touch artifacts/qq.wasm
# find ./near/target/near -name "*.wasm" -exec cp {} artifacts/ \;
zip -j contracts.zip artifacts/*.wasm
shell: bash
- name: Create Release
uses: softprops/action-gh-release@v2
with:
tag_name: v${{ github.sha }}
files: contracts.zip