Skip to content

Commit 9b4ecac

Browse files
committed
chore: Add a job to publish Linux binaries.
Useful for people who want to run these locally and for CI.
1 parent e2af19b commit 9b4ecac

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/publish.yml

+15
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: publish
22

33
on:
4+
pull_request:
5+
branches: [master]
46
push:
57
branches: [master]
68
release:
@@ -13,3 +15,16 @@ jobs:
1315
API_TOKEN_HACKAGE: ${{ secrets.API_TOKEN_HACKAGE }}
1416
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
1517
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
18+
19+
binaries:
20+
runs-on: ubuntu-22.04
21+
container: toxchat/toktok-stack:haskell
22+
steps:
23+
- uses: actions/checkout@v4
24+
- name: Build binaries
25+
run: stack build --copy-bins
26+
- name: Upload binaries
27+
uses: actions/upload-artifact@v4
28+
with:
29+
name: binaries
30+
path: .stack-work/install/x86_64-linux/lts-*/*/bin

0 commit comments

Comments
 (0)