From 3e014717bc46cad3b853dbb6aeb19c0f1fe8400c Mon Sep 17 00:00:00 2001 From: Monir Hadji Date: Tue, 29 Aug 2023 20:23:50 -0400 Subject: [PATCH] fix: update the release workflow (#289) --- .github/actions/install-rust/action.yml | 2 +- .github/workflows/release.yml | 27 ++++++++++++++++++------- README.md | 19 +++++++++-------- 3 files changed, 32 insertions(+), 16 deletions(-) diff --git a/.github/actions/install-rust/action.yml b/.github/actions/install-rust/action.yml index 44f43f63f..3458e50cd 100644 --- a/.github/actions/install-rust/action.yml +++ b/.github/actions/install-rust/action.yml @@ -10,7 +10,7 @@ inputs: target: description: 'Default target to add' required: false - default: 'aarch64-unknown-linux-gnu' + default: 'x86_64-unknown-linux-gnu' msrv: description: 'Enable rust-toolchain version for msrv' required: false diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 87146a16a..915138356 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest-16-core strategy: matrix: - target: [ aarch64-unknown-linux-gnu ] + target: [ x86_64-unknown-linux-gnu ] steps: - uses: actions/checkout@v3 - uses: ./.github/actions/install-rust @@ -33,20 +33,33 @@ jobs: shell: bash run: | export arch=$(echo ${{ matrix.target }} | cut -d- -f1) + export version=${GITHUB_REF#refs/*/} echo "arch=${arch}" >> $GITHUB_ENV - mv ./target/release/topos ./target/release/topos-${arch} - tar -czvf ./target/release/topos-${ arch }.tgz ./target/release/topos-${arch} + echo "version=${version}" >> $GITHUB_ENV + mv ./target/${{ matrix.target }}/release/topos topos-${version}-${arch} + tar -czvf topos-${version}-${arch}.tgz topos-${version}-${arch} - name: Upload release artifacts for ${{ matrix.target }} architecture uses: actions/upload-artifact@v3 with: - name: topos-binaries-${{ matrix.target }} + name: topos-${{ matrix.target }} if-no-files-found: error path: | - ./target/release/topos-${{ env.arch }}.tgz + topos-${{ env.version }}-${{ env.arch }}.tgz - name: Publish binaries for ${{ matrix.target }} release - uses: softprops/action/gb/release@v1 + uses: softprops/action-gh-release@v1 with: files: | - ./target/release/topos-${{ env.arch }}.tgz + topos-${{ env.version }}-${{ env.arch }}.tgz + + - name: Send Slack notification + uses: slackapi/slack-github-action@v1.24.0 + with: + payload: | + { + "repository": "${{ github.repository }}", + "version": "${{ github.ref }}" + } + env: + SLACK_WEBHOOK_URL: ${{ vars.RELEASE_PIPELINE_SLACK_WEBHOOK_URL }} diff --git a/README.md b/README.md index 50b81f5ce..8210cbfa2 100644 --- a/README.md +++ b/README.md @@ -9,19 +9,21 @@

-topos is the unified command line interface to the Topos protocol. +topos is the unified command line interface to the Topos protocol.

+
- - - +
-[![codecov](https://codecov.io/gh/topos-protocol/topos/branch/main/graph/badge.svg?token=FOH2B2GRL9&style=flat)](https://codecov.io/gh/topos-protocol/topos) ![Test workflow](https://github.com/topos-protocol/topos/actions/workflows/test.yml/badge.svg) ![Quality workflow](https://github.com/topos-protocol/topos/actions/workflows/quality.yml/badge.svg) -![MSRV](https://img.shields.io/badge/MSRV-1.71.1-blue?labelColor=1C2C2E&logo=Rust&style=flat-square) +[![codecov](https://codecov.io/gh/topos-protocol/topos/branch/main/graph/badge.svg?token=FOH2B2GRL9)](https://codecov.io/gh/topos-protocol/topos) +![MSRV](https://img.shields.io/badge/MSRV-1.71.1-blue?labelColor=1C2C2E&logo=Rust) +[![](https://dcbadge.vercel.app/api/server/7HZ8F8ykBT?style=flat)](https://discord.gg/7HZ8F8ykBT) + +
## Getting Started @@ -41,7 +43,7 @@ cargo install topos --git https://github.com/topos-protocol/topos topos --help ``` -Find more about how topos works in the [documentation](https://docs.toposware.com/). +Find more about how topos works in the [documentation](https://docs.topos.technology/). ## Development @@ -51,11 +53,12 @@ Running a minimal local setup with docker compose is described [here](./tools/RE ## Support Feel free to [open an issue](https://github.com/topos-protocol/topos/issues/new) if you have any feature request or bug report.
+If you have any questions, do not hesitate to reach us on [Discord](https://discord.gg/7HZ8F8ykBT)! ## Resources - Website: -- Technical Documentation: +- Technical Documentation: - Medium: - Whitepaper: [Topos: A Secure, Trustless, and Decentralized Interoperability Protocol](https://arxiv.org/pdf/2206.03481.pdf)