Explorar o código

chore(target_chains/near): save wasm as artifact in CI (#2344)

Pavel Strakhov hai 9 meses
pai
achega
c3b0f7178c
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      .github/workflows/ci-near-contract.yml

+ 8 - 0
.github/workflows/ci-near-contract.yml

@@ -5,12 +5,14 @@ on:
     paths:
       - target_chains/near/**
       - wormhole_attester/sdk/rust/**
+      - .github/workflows/ci-near-contract.yml
   push:
     branches:
       - main
     paths:
       - target_chains/near/**
       - wormhole_attester/sdk/rust/**
+      - .github/workflows/ci-near-contract.yml
 
 env:
   CARGO_TERM_COLOR: always
@@ -37,3 +39,9 @@ jobs:
       - run: sudo apt-get install -y libudev-dev
       - run: cargo +stable install --locked cargo-near@0.13.3
       - run: cargo near build reproducible-wasm
+      - name: Upload artifact
+        uses: actions/upload-artifact@v4
+        with:
+          name: pyth_near.wasm
+          path: target_chains/near/receiver/target/near/pyth_near.wasm
+          retention-days: 365