Weekly update from 2024-04-01 #114
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
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
name: Build | |
jobs: | |
runhaskell: | |
runs-on: ubuntu-latest # or macOS-latest, or windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Haskell | |
if: startsWith(github.ref, 'refs/tags/') | |
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' | |
- name: Build Executable | |
if: startsWith(github.ref, 'refs/tags/') | |
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 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |