From 50d89e0990fa8bbf298fcc91e12d8822d29cab41 Mon Sep 17 00:00:00 2001 From: Lars Lubkoll <11710767+lubkoll@users.noreply.github.com> Date: Tue, 3 Sep 2024 14:48:00 +0200 Subject: [PATCH] test --- .github/workflows/release.yml | 32 ++++++++++++++++++++++++++++++ smart-contracts/osmosis/Cargo.toml | 2 +- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000..f10134fb9 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,32 @@ +name: Create Release + +on: + pull_request: + push: + workflow_dispatch: + +jobs: + create-release: + runs-on: ubuntu-latest + steps: + - name: Check out repository code + uses: actions/checkout@v3 + - name: Install just + run: cargo install just + working-directory: smart-contracts + - name: Generate Cargo.lock + run: cargo check + working-directory: smart-contracts/osmosis + - name: Compile contracts + run: just workspace-optimize + working-directory: smart-contracts/osmosis + - name: Create release + uses: ncipollo/release-action@v1 + with: + artifacts: "smart-contracts/osmosis/artifacts/" + artifactErrorsFailBuild: "true" + - name: Archive artifacts + uses: actions/upload-artifact@v4 + with: + name: compiled-contracts + path: smart-contracts/osmosis/artifacts diff --git a/smart-contracts/osmosis/Cargo.toml b/smart-contracts/osmosis/Cargo.toml index f50ea5c37..75014f191 100644 --- a/smart-contracts/osmosis/Cargo.toml +++ b/smart-contracts/osmosis/Cargo.toml @@ -1,7 +1,7 @@ [workspace] resolver = "2" -members = ["contracts/*", "packages/*"] +members = ["contracts/merkle-incentives", "packages/*"] [workspace.dependencies] # CosmWasm