File tree 3 files changed +10
-1
lines changed
3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 22
22
shell : bash
23
23
run : stack --no-terminal --resolver=${{ inputs.resolver }} build
24
24
25
+ - name : Build sdist distribution
26
+ shell : bash
27
+ run : stack --no-terminal --resolver=${{ inputs.resolver }} sdist
28
+
25
29
- name : Run tests
26
30
shell : bash
27
31
run : stack --no-terminal --resolver=${{ inputs.resolver }} test
Original file line number Diff line number Diff line change 1
1
name : Publish Package
2
2
description : ' Publish the package to Hackage'
3
3
inputs :
4
+ resolver :
5
+ description : ' Which resolver to use when building the package'
6
+ required : false
7
+ default : lts-18.28
4
8
token :
5
9
description : ' Token to use for publishing.'
6
10
required : true
13
17
steps :
14
18
- name : Setup dist directory
15
19
shell : bash
16
- run : echo "STACK_DIR=$(stack --no-terminal path --dist-dir)" >> $GITHUB_ENV
20
+ run : echo "STACK_DIR=$(stack --no-terminal path --dist-dir --resolver=${{ inputs.resolver }} )" >> $GITHUB_ENV
17
21
18
22
- uses : haskell-actions/hackage-publish@v1
19
23
with :
Original file line number Diff line number Diff line change 57
57
if : ${{ steps.release.outputs.releases_created }}
58
58
with :
59
59
token : ${{ env.HACKAGE_TOKEN }}
60
+ dry_run : ' false'
60
61
61
62
- uses : ./.github/actions/publish-docs
62
63
if : ${{ steps.release.outputs.releases_created }}
You can’t perform that action at this time.
0 commit comments