Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
fix: update the release workflow (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
hadjiszs authored Aug 30, 2023
1 parent ba49d75 commit 3e01471
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/actions/install-rust/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
27 changes: 20 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/[email protected]
with:
payload: |
{
"repository": "${{ github.repository }}",
"version": "${{ github.ref }}"
}
env:
SLACK_WEBHOOK_URL: ${{ vars.RELEASE_PIPELINE_SLACK_WEBHOOK_URL }}
19 changes: 11 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,21 @@
<br />

<p align="center">
topos is the unified command line interface to the <a href="https://docs.toposware.com/general-overview">Topos</a> protocol.
<b>topos</b> is the unified command line interface to the <a href="https://docs.topos.technology/">Topos</a> protocol.
</p>
</div>

<br />

</div>

<!-- **`topos` is the unified command line interface to the [Topos](https://docs.toposware.com/general-overview) network.** -->
<div align="center">

[![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)

</div>

## Getting Started

Expand All @@ -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

Expand All @@ -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.<br />
If you have any questions, do not hesitate to reach us on [Discord](https://discord.gg/7HZ8F8ykBT)!

## Resources

- Website: <https://toposware.com>
- Technical Documentation: <https://docs.toposware.com>
- Technical Documentation: <https://docs.topos.technology/>
- Medium: <https://toposware.medium.com>
- Whitepaper: [Topos: A Secure, Trustless, and Decentralized
Interoperability Protocol](https://arxiv.org/pdf/2206.03481.pdf)
Expand Down

0 comments on commit 3e01471

Please sign in to comment.