Skip to content

Commit

Permalink
add gh workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ayush--s committed May 24, 2020
1 parent 044a898 commit 414b91b
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish

on:
push:
tags:
- "*"

jobs:
publish:
name: Publish binaries
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- run: cargo build --release
- run: tar czvf target/release/brightness.tar.gz target/release/brightness
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/brightness.tar.gz
asset_name: brightness-linux-x86_64.tar.gz
tag: ${{ github.ref }}
overwrite: true

0 comments on commit 414b91b

Please sign in to comment.