Skip to content

Commit

Permalink
Merge pull request #54 from koterpillar/build-release-executable
Browse files Browse the repository at this point in the history
Build executable to put in the release
  • Loading branch information
koterpillar authored Mar 16, 2024
2 parents 364217b + 0fe753d commit 998a405
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,17 @@ jobs:
uses: actions/checkout@v4
- name: Install system dependencies
run: sudo ./install-deps
- name: Build
- name: Build and test
uses: freckle/stack-action@v5
with:
stack-build-arguments: --fast
- name: Build executable
run: stack --no-terminal build --fast --copy-bins --local-bin-path .
- name: Store executable
uses: actions/upload-artifact@v4
with:
name: executable
path: multiblog

publish:
needs:
Expand All @@ -33,6 +40,10 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
- name: Download executable
uses: actions/download-artifact@v4
with:
name: executable
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 998a405

Please sign in to comment.