-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add github action for automatic build on release
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Controls when the workflow will run | ||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: haskell/actions/setup@v1 | ||
enable-stack: true | ||
|
||
- name: build executable | ||
run: | | ||
stack build | ||
find .stack-work/install -name oschark -exec mv {} . \; | ||
- name: do Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
prerelease: true | ||
files: | | ||
oschark | ||
LICENSE | ||
|