From 4fcd5ffccae6348b804dfc7841a802bbafe61d18 Mon Sep 17 00:00:00 2001 From: Csongor Kiss Date: Thu, 1 Dec 2022 15:48:02 +0000 Subject: [PATCH] CI: build flattened evm contracts when tag is pushed --- .github/workflows/evm-flattened-contracts.yml | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/evm-flattened-contracts.yml diff --git a/.github/workflows/evm-flattened-contracts.yml b/.github/workflows/evm-flattened-contracts.yml new file mode 100644 index 000000000..50449fe28 --- /dev/null +++ b/.github/workflows/evm-flattened-contracts.yml @@ -0,0 +1,29 @@ +name: Publish flattened EVM contracts as an artifact for verification purposes + +on: + # The action can be triggered manually or whenever a tag with the name 'evm-*' + # is pushed + workflow_dispatch: + push: + tags: + - 'evm-*' + +jobs: + publish-artifacts: + runs-on: ubuntu-latest + + defaults: + run: + shell: bash + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Flatten contracts + run: cd ethereum && make flattened + + - uses: actions/upload-artifact@v3 + with: + name: flattened-contracts + path: ethereum/flattened