Skip to content

Commit

Permalink
Add github action for automatic build on release
Browse files Browse the repository at this point in the history
  • Loading branch information
Cj-bc committed Aug 19, 2021
1 parent 3abd9a3 commit e1fe1b7
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build_release.yaml
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

0 comments on commit e1fe1b7

Please sign in to comment.