-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d2205ab
commit b30371b
Showing
1 changed file
with
19 additions
and
4 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 |
---|---|---|
@@ -1,16 +1,31 @@ | ||
on: [push] | ||
name: build | ||
jobs: | ||
|
||
runhaskell: | ||
name: Build Executable | ||
|
||
runs-on: ubuntu-latest # or macOS-latest, or windows-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: haskell/actions/setup@v2 | ||
- name: Setup Haskell | ||
uses: haskell/actions/setup@v2 | ||
with: | ||
ghc-version: '8.8.4' # Exact version of ghc to use | ||
# cabal-version: 'latest'. Omitted, but defaults to 'latest' | ||
enable-stack: true | ||
stack-version: 'latest' | ||
- run: stack build | ||
|
||
- name: Build Executable | ||
id: build-exec | ||
run: | | ||
stack build | ||
echo "::set-output name=bin-path::$(stack path --local-install-root)" | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
files: ${{ steps.build-exec.outputs.bin-path }}/bin/reddit-emacs-tips-n-tricks-exe | ||
#files: .stack-work/dist/x86_64-linux/Cabal-${{ cabal-version }}/build/reddit-emacs-tips-n-tricks-exe/reddit-emacs-tips-n-tricks-exe | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |