Skip to content

Commit 5e7c754

Browse files
authored
build: Fix hackage publication integration (#73)
1 parent ce2ea06 commit 5e7c754

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

.github/actions/ci/action.yml

+4
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ runs:
2222
shell: bash
2323
run: stack --no-terminal --resolver=${{ inputs.resolver }} build
2424

25+
- name: Build sdist distribution
26+
shell: bash
27+
run: stack --no-terminal --resolver=${{ inputs.resolver }} sdist
28+
2529
- name: Run tests
2630
shell: bash
2731
run: stack --no-terminal --resolver=${{ inputs.resolver }} test

.github/actions/publish/action.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Publish Package
22
description: 'Publish the package to Hackage'
33
inputs:
4+
resolver:
5+
description: 'Which resolver to use when building the package'
6+
required: false
7+
default: lts-18.28
48
token:
59
description: 'Token to use for publishing.'
610
required: true
@@ -13,7 +17,7 @@ runs:
1317
steps:
1418
- name: Setup dist directory
1519
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
1721

1822
- uses: haskell-actions/hackage-publish@v1
1923
with:

.github/workflows/release-please.yml

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ jobs:
5757
if: ${{ steps.release.outputs.releases_created }}
5858
with:
5959
token: ${{ env.HACKAGE_TOKEN }}
60+
dry_run: 'false'
6061

6162
- uses: ./.github/actions/publish-docs
6263
if: ${{ steps.release.outputs.releases_created }}

0 commit comments

Comments
 (0)