Skip to content

Commit

Permalink
Create Release Binary action
Browse files Browse the repository at this point in the history
  • Loading branch information
arrudagates authored Oct 5, 2022
1 parent a150f9e commit 39cef50
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release-binary.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build binary

on: workflow_dispatch

jobs:
build_binary:
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v3
with:
submodules: true

- name: rust-toolchain
uses: actions-rs/[email protected]

- name: Build binary
run: cargo build --release

- name: Add binary to release
uses: djnicholson/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag-name: ${{ github.ref_name }}
asset-name: 'invarch-collator'
file: 'target/release/invarch-collator'

- name: Add spec file to release
uses: djnicholson/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag-name: ${{ github.ref_name }}
asset-name: 'tinker-raw.json'
file: 'res/tinker/tinker-raw.json'

0 comments on commit 39cef50

Please sign in to comment.