From 36ea578aa5a3cb43a2aa518ed0d8fb090d26f13a Mon Sep 17 00:00:00 2001 From: Maksym Kryva Date: Wed, 10 Jan 2024 15:49:23 +0200 Subject: [PATCH] ci: prepare workflow for release contracts --- .github/workflows/buld-release.yaml | 35 ++++++++++++++++++++++ .github/workflows/l1-contracts-ci.yaml | 4 --- .github/workflows/l2-contracts-ci.yaml | 4 --- .github/workflows/system-contracts-ci.yaml | 4 --- 4 files changed, 35 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/buld-release.yaml diff --git a/.github/workflows/buld-release.yaml b/.github/workflows/buld-release.yaml new file mode 100644 index 000000000..155fbefbf --- /dev/null +++ b/.github/workflows/buld-release.yaml @@ -0,0 +1,35 @@ +name: Build and release + +on: + push: + branches: + - '*' + +jobs: + build-contracts: + runs-on: ubuntu-latest + + steps: + - name: Checkout the repository + uses: actions/checkout@v3 + + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: 18.18.0 + cache: yarn + + - name: Install dependencies + run: yarn + + - name: Build contracts + run: | + yarn l1 build + yarn l2 build + yarn sc build + + - name: Prepare artifacts + run: | + tar -czvf l1-contracts.tar.gz ./l1-contracts + tar -czvf l2-contracts.tar.gz ./l2-contracts + tar -czvf system-contracts.tar.gz ./system-contracts diff --git a/.github/workflows/l1-contracts-ci.yaml b/.github/workflows/l1-contracts-ci.yaml index cee8930f9..394eabaef 100644 --- a/.github/workflows/l1-contracts-ci.yaml +++ b/.github/workflows/l1-contracts-ci.yaml @@ -2,10 +2,6 @@ name: L1 contracts CI on: pull_request: - push: - branches: - - dev - - main jobs: build: diff --git a/.github/workflows/l2-contracts-ci.yaml b/.github/workflows/l2-contracts-ci.yaml index f40b3c2e6..e99569393 100644 --- a/.github/workflows/l2-contracts-ci.yaml +++ b/.github/workflows/l2-contracts-ci.yaml @@ -2,10 +2,6 @@ name: L2 contracts CI on: pull_request: - push: - branches: - - dev - - main jobs: build: diff --git a/.github/workflows/system-contracts-ci.yaml b/.github/workflows/system-contracts-ci.yaml index 6dacf61ea..50bf407d2 100644 --- a/.github/workflows/system-contracts-ci.yaml +++ b/.github/workflows/system-contracts-ci.yaml @@ -2,10 +2,6 @@ name: System contracts CI on: pull_request: - push: - branches: - - dev - - main jobs: build: