v6.4.0 #66
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Compiled Bytecode | |
on: | |
release: | |
types: [published] | |
jobs: | |
publish-bytecode: | |
strategy: | |
matrix: | |
node-version: | |
- 18.x | |
os: | |
- ubuntu-22.04 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install Dependencies | |
run: npm ci | |
- name: Build | |
run: npm run build | |
- name: Flatten contracts | |
run: npm run flatten | |
- name: Clean artifacts | |
run: npm run clean:artifacts | |
- name: Get the tag | |
id: release_tag | |
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/} | |
- name: Create zip file | |
working-directory: ./artifacts | |
run: | | |
zip -r Bytecode-${{ steps.release_tag.outputs.VERSION }}.zip * | |
- name: Upload Bytecode to release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: ./artifacts/Bytecode-${{ steps.release_tag.outputs.VERSION }}.zip | |
tag: ${{ steps.release_tag.outputs.VERSION }} | |
overwrite: true |