Skip to content

Commit

Permalink
Update release action
Browse files Browse the repository at this point in the history
  • Loading branch information
de-luca committed Jul 5, 2021
1 parent 86db316 commit e537287
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,24 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: get version
id: version
run: echo ::set-output name=version::${GITHUB_REF/refs\/tags\//}

- name: build
run: docker run --rm -it -v "$(pwd)":/home/rust/src ekidd/rust-musl-builder cargo build --release
run: docker run --rm -u root -v "$(pwd)":/home/rust/src ekidd/rust-musl-builder cargo build --release

- name: archive
id: archive
run: |
dir="beacon_x86_64-unknown-linux-musl_${{ steps.version.outputs.version }}"
mkdir -p "$dir"
cp README.md "$dir/"
cp target/x86_64-unknown-linux-musl/release/beacon "$dir/"
tar czf "$dir.tar.gz" "$dir"
echo "::set-output name=asset::$dir.tar.gz"
- uses: ncipollo/release-action@v1
with:
artifacts: "target/x86_64-unknown-linux-musl/release/beacon"
artifacts: ${{ steps.archive.outputs.asset }}
token: ${{ secrets.GITHUB_TOKEN }}
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

> Interplanar Beacon
A "room oriented" signaling server using websockets.

## Usage
```shell
# command
beacon [interface]
# with specific interface
beacon 0.0.0.0:3030
# with specific log level
RUST_LOG=debug beacon
```

## Dev tools

### Format
Expand Down

0 comments on commit e537287

Please sign in to comment.