Skip to content

Commit

Permalink
Merge branch 'main' into feature_branch_grpc
Browse files Browse the repository at this point in the history
  • Loading branch information
vgonkivs authored Jan 13, 2025
2 parents 872d422 + c0055c5 commit a91a37a
Show file tree
Hide file tree
Showing 40 changed files with 839 additions and 291 deletions.
46 changes: 38 additions & 8 deletions .github/workflows/ci_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ on:
pull_request:
workflow_dispatch:
inputs:
tag-as:
description: 'Tag for snapshot release (optional)'
required: false
run-on-tag:
description: 'Tag for release'
required: true

jobs:
# set up go version for use through pipelines, setting
Expand Down Expand Up @@ -83,14 +83,26 @@ jobs:
needs: [setup]
runs-on: ubuntu-latest
if: |
github.event_name == 'workflow_dispatch' ||
github.event_name == 'release'
github.event_name == 'release' ||
github.event_name == 'workflow_dispatch'
permissions: "write-all"
steps:
- uses: actions/checkout@v4

- run: git fetch --force --tags

- name: Set LATEST_TAG for release
if: github.event_name == 'release'
run: echo "LATEST_TAG=${{ github.event.release.tag_name }}" >> $GITHUB_ENV

- name: Set LATEST_TAG for workflow_dispatch
if: github.event_name == 'workflow_dispatch'
run: echo "LATEST_TAG=${{ inputs.run-on-tag }}" >> $GITHUB_ENV

- name: Checkout a given tag
if: github.event_name == 'workflow_dispatch'
run: git checkout ${{ inputs.run-on-tag }}

- uses: actions/setup-go@v5
with:
go-version: ${{ needs.setup.outputs.go-version }}
Expand All @@ -111,19 +123,37 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
GORELEASER_CURRENT_TAG: ${{ env.LATEST_TAG }}

upload-docs:
needs: goreleaser
if: github.event_name == 'release'
needs: [setup]
if: |
github.event_name == 'release' ||
github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- run: git fetch --force --tags

- name: Set LATEST_TAG for release
if: github.event_name == 'release'
run: echo "LATEST_TAG=${{ github.event.release.tag_name }}" >> $GITHUB_ENV

- name: Set LATEST_TAG for workflow_dispatch
if: github.event_name == 'workflow_dispatch'
run: echo "LATEST_TAG=${{ inputs.run-on-tag }}" >> $GITHUB_ENV

- name: Checkout a given tag
if: github.event_name == 'workflow_dispatch'
run: git checkout ${{ inputs.run-on-tag }}

- run: |
make openrpc-gen > openrpc.json
gh release upload ${{github.event.release.tag_name}} openrpc.json
gh release upload "$LATEST_TAG" openrpc.json
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ ifeq ($(SHORT),true)
else
INTEGRATION_RUN_LENGTH =
endif

include celestia-node.mk

## help: Get more info on make commands.
help: Makefile
@echo " Choose a command run in "$(PROJECTNAME)":"
Expand Down
37 changes: 36 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,15 @@ Continue reading [here](https://blog.celestia.org/celestia-mvp-release-data-avai
- [API docs](#api-docs)
- [Node types](#node-types)
- [Run a node](#run-a-node)
- [Quick Start with Light Node on arabica](#quick-start-with-light-node-on-arabica)
- [Environment variables](#environment-variables)
- [Package-specific documentation](#package-specific-documentation)
- [Code of Conduct](#code-of-conduct)

## Minimum requirements

| Requirement | Notes |
| ----------- |----------------|
| ----------- | -------------- |
| Go version | 1.23 or higher |

## System Requirements
Expand Down Expand Up @@ -79,6 +80,40 @@ celestia <node_type> start

Please refer to [this guide](https://docs.celestia.org/nodes/celestia-node/) for more information on running a node.

### Quick Start with Light Node on arabica

View available commands and their usage:

```sh
make node-help
```

Install celestia node and cel-key binaries:

```sh
make node-install
```

Start a light node with automated setup:

```sh
make light-arabica-up
```

This command:

- Automatically checks wallet balance
- Requests funds from faucet if needed
- Sets node height to latest-1 for quick startup
- Initializes the node if running for the first time

Options:

```sh
make light-arabica-up COMMAND=again # Reset node state to latest height
make light-arabica-up CORE_IP=<ip> # Use custom core IP
```

## Environment variables

| Variable | Explanation | Default value | Required |
Expand Down
Loading

0 comments on commit a91a37a

Please sign in to comment.