-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (62 loc) · 1.75 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Release
on:
push:
branches: main
workflow_dispatch:
jobs:
tag:
runs-on: ubuntu-latest
strategy:
matrix:
package:
- freckle-app
- freckle-ecs
- freckle-env
- freckle-exception
- freckle-kafka
- freckle-http
- freckle-memcached
- freckle-otel
- freckle-prelude
- freckle-stats
steps:
- uses: actions/checkout@v4
- id: tag
uses: freckle/haskell-tag-action@v1
with:
package-yaml: ${{ matrix.package }}/package.yaml
tag-prefix: ${{ matrix.package }}-v
outputs:
tag: ${{ steps.tag.outputs.tag }}
release:
needs: tag
if: needs.tag.outputs.tag
runs-on: ubuntu-latest
strategy:
matrix:
package:
- freckle-app
- freckle-ecs
- freckle-env
- freckle-exception
- freckle-kafka
- freckle-http
- freckle-memcached
- freckle-otel
- freckle-prelude
- freckle-stats
env:
HACKAGE_KEY: ${{ secrets.HACKAGE_UPLOAD_API_KEY }}
steps:
- uses: actions/checkout@v4
- run: sudo apt-get install --assume-yes --no-install-recommends libpcre3-dev librdkafka-dev
- name: "Build with Haddocks"
uses: freckle/stack-action@v5
with:
test: false
stack-build-arguments: --haddock --haddock-for-hackage
# Upload using our oldest, tested resolver, to set the lowest lower bounds
- name: "Release to Hackage"
run: stack --stack-yaml stack-lts20.yaml upload --pvp-bounds lower ${{ matrix.package }}
- name: "Upload documentation"
run: stack upload --documentation ${{ matrix.package }}