Skip to content

Commit ce7a493

Browse files
committed
Adds release workflow
1 parent 84485c4 commit ce7a493

File tree

3 files changed

+53
-1
lines changed

3 files changed

+53
-1
lines changed

.github/workflows/release.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Releases
2+
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
8+
jobs:
9+
build:
10+
name: Release
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
steps:
15+
- uses: actions/checkout@v3
16+
17+
- uses: actions/cache@v3
18+
name: Cache ~/.stack
19+
with:
20+
path: ~/.stack
21+
key: stack-global-${{ hashFiles('stack.yaml') }}
22+
restore-keys: stack-global-
23+
24+
- uses: actions/cache@v3
25+
name: Cache .stack-work
26+
with:
27+
path: .stack-work
28+
key: stack-work-${{ hashFiles('stack.yaml') }}-${{ hashFiles('package.yaml') }}-${{ hashFiles('**/*.hs') }}
29+
restore-keys: stack-work-
30+
31+
- uses: haskell/actions/setup@v2
32+
name: Setup Haskell Stack
33+
with:
34+
stack-version: latest
35+
stack-no-global: true
36+
stack-setup-ghc: true
37+
enable-stack: true
38+
39+
- name: Install non-hs dependencies
40+
run: sudo apt-get update && sudo apt-get install libgtk-3-dev gobject-introspection libgirepository1.0-dev libwebkit2gtk-4.0-dev libgtksourceview-3.0-dev
41+
42+
- name: Install dependencies
43+
run: stack build --only-dependencies
44+
45+
- name: Build
46+
run: stack build
47+
48+
- uses: ncipollo/release-action@v1
49+
with:
50+
artifacts: ".out/deadd-notification-center"

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@ com.ph-uhl.deadd.notification.service
1818
deadd-notification-center.service
1919

2020
pkg/
21-
!pkg/PKGBUILD
21+
!pkg/PKGBUILD
22+
23+
.out/

.out/deadd-notification-center

-97.8 MB
Binary file not shown.

0 commit comments

Comments
 (0)