Skip to content

Commit

Permalink
chore: trigger cargo-dist only on omni-relayer
Browse files Browse the repository at this point in the history
  • Loading branch information
frolvanya committed Feb 8, 2025
1 parent 06c029e commit 518af07
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ on:
pull_request:
push:
tags:
- '**[0-9]+.[0-9]+.[0-9]+*'
- 'omni-relayer-v[0-9]+.[0-9]+.[0-9]+*'

jobs:
# Run 'dist plan' (or host) to determine what tasks we need to do
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/update-contracts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ jobs:
- 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 rust-build-near
# timeout-minutes: 60
- 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 rust-build-near
timeout-minutes: 60

- name: Install Anchor
uses: metadaoproject/setup-anchor@v3
Expand All @@ -42,8 +42,8 @@ jobs:
zip -j contracts.zip artifacts/*.wasm
shell: bash

# - name: Create Release
# uses: softprops/action-gh-release@v2
# with:
# tag_name: ${{ github.ref_name }}
# files: contracts.zip
- name: Create Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref_name }}
files: contracts.zip
1 change: 1 addition & 0 deletions dist-workspace.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ members = ["cargo:omni-relayer"]
cargo-dist-version = "0.28.0"
# CI backends to support
ci = "github"
allow-dirty = ["ci"]
# The installers to generate for each app
installers = ["shell"]
# Target platforms to build apps for (Rust target-triple syntax)
Expand Down

0 comments on commit 518af07

Please sign in to comment.