From c98d630f3762f6c1da071ee0fa66609578167126 Mon Sep 17 00:00:00 2001 From: Neo Date: Thu, 16 May 2024 11:29:26 +0200 Subject: [PATCH] revert changes --- .github/workflows/build-release.yaml | 50 ++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/build-release.yaml diff --git a/.github/workflows/build-release.yaml b/.github/workflows/build-release.yaml new file mode 100644 index 000000000..f9673dbe8 --- /dev/null +++ b/.github/workflows/build-release.yaml @@ -0,0 +1,50 @@ +name: Build and release + +on: + push: + branches: + - "*" + +jobs: + build-contracts: + runs-on: ubuntu-latest + + steps: + - name: Checkout the repository + uses: actions/checkout@v4 + + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: 18.18.0 + cache: yarn + + - name: Init + id: init + run: | + yarn + echo "release_tag=$(echo ${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}})-$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT + + - 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 + + - name: Release + uses: softprops/action-gh-release@v1 + with: + tag_name: ${{ steps.init.outputs.release_tag }} + fail_on_unmatched_files: true + target_commitish: ${{ github.sha }} + body: "" + files: | + l1-contracts.tar.gz + l2-contracts.tar.gz + system-contracts.tar.gz \ No newline at end of file