Skip to content

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
seunlanlege committed Sep 30, 2023
1 parent 8f865fb commit 6a1fff8
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 2 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Release

on:
workflow_dispatch:

jobs:
build_and_publish:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
with:
token: ${{ secrets.GH_TOKEN }}
submodules: recursive

- uses: webfactory/[email protected]
with:
ssh-private-key: "${{ secrets.SSH_KEY }}"

- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
version: '3.9.1'

- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly

- name: Build
run: |
cargo +nightly build --release -p hyperbridge
mv ./target/release/hyperbridge ./
- name: Install Cargo get
run: cargo install cargo-get

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}

- name: Build the Docker image
run: docker build -t polytopelabs/hyperbridge:$(cargo get package.version --entry ./parachain/node) -t polytopelabs/hyperbridge:latest -f ./scripts/docker/slim.Dockerfile .

- name: Docker Push
run: |
docker push polytopelabs/hyperbridge:$(cargo get package.version --entry ./parachain/node)
docker push polytopelabs/hyperbridge:latest
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion parachain/node/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hyperbridge"
version = "0.1.0"
version = "0.1.1"
authors = ["Polytope Labs <[email protected]>"]
description = "The Hyperbridge parachain node"
edition = "2021"
Expand Down

0 comments on commit 6a1fff8

Please sign in to comment.