Skip to content

Commit

Permalink
Action to create release tarballs on github (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
sveitser authored Aug 12, 2024
1 parent 516a1e9 commit 30f75c8
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 3 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/espresso-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
on:
push:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
workflow_dispatch:

name: Create Release

jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Create release
run: |
scripts/espresso-build-release
- name: Release node package
uses: softprops/action-gh-release@v2
if: matrixstartsWith(github.ref, 'refs/tags/')
with:
files: '*.tgz'
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "@arbitrum/nitro-contracts",
"version": "1.2.1",
"name": "@espressosystems/nitro-contracts",
"version": "1.4.0",
"description": "Layer 2 precompiles and rollup for Arbitrum Nitro",
"author": "Offchain Labs, Inc.",
"license": "BUSL-1.1",
"repository": {
"type": "git",
"url": "git+https://github.com/offchainlabs/nitro-contracts.git"
"url": "git+https://github.com/espressosystems/nitro-contracts.git"
},
"files": [
"src/",
Expand Down
10 changes: 10 additions & 0 deletions scripts/espresso-build-release
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -euo pipefail

yarn install
yarn build

# remove conflicting IERC20 implementation
rm -rv build/contracts/src/rollup/FactoryDeployerHelper.sol/IERC20.*

yarn pack

0 comments on commit 30f75c8

Please sign in to comment.