Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Action to create release tarballs on github #17

Merged
merged 1 commit into from
Aug 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading