-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (59 loc) · 1.69 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
name: Release
on:
push:
branches: main
jobs:
tag:
runs-on: ubuntu-latest
strategy:
matrix:
package:
- freckle-app
- freckle-env
- freckle-exception
- freckle-kafka
- freckle-http
- freckle-memcached
- freckle-otel
- freckle-prelude
- persistent-sql-lifted
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-env
- freckle-exception
- freckle-kafka
- freckle-http
- freckle-memcached
- freckle-otel
- freckle-prelude
- persistent-sql-lifted
env:
HACKAGE_KEY: ${{ secrets.HACKAGE_UPLOAD_API_KEY }}
steps:
- uses: actions/checkout@v4
- run: sudo apt-get install --assume-yes --no-install-recommends 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-lts-20.26.yaml upload --pvp-bounds lower ${{ matrix.package }}
- name: "Upload documentation"
run: stack upload --documentation ${{ matrix.package }}