diff --git a/.github/actions/ci/action.yml b/.github/actions/ci/action.yml index e7225c1..e4264f5 100644 --- a/.github/actions/ci/action.yml +++ b/.github/actions/ci/action.yml @@ -23,6 +23,10 @@ runs: shell: bash run: stack --no-terminal --resolver=${{ inputs.resolver }} build + - name: Build sdist distribution + shell: bash + run: stack --no-terminal --resolver=${{ inputs.resolver }} sdist + - name: Run tests shell: bash run: stack --no-terminal --resolver=${{ inputs.resolver }} test diff --git a/.github/actions/publish-docs/action.yml b/.github/actions/publish-docs/action.yml index 5789e6c..ce18b2a 100644 --- a/.github/actions/publish-docs/action.yml +++ b/.github/actions/publish-docs/action.yml @@ -4,13 +4,17 @@ inputs: token: description: 'Token to use for publishing.' required: true + resolver: + description: 'Which resolver to use when building the package' + required: false + default: 'lts-16.31' runs: using: composite steps: - name: Setup dist directory shell: bash - run: echo "STACK_DIR=$(stack --no-terminal path --dist-dir)" >> $GITHUB_ENV + run: echo "STACK_DIR=$(stack --no-terminal path --dist-dir --resolver=${{ inputs.resolver }})" >> $GITHUB_ENV - uses: launchdarkly/gh-actions/actions/publish-pages@publish-pages-v1.0.1 name: 'Publish to Github pages' diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index d62dd5c..9440304 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -63,6 +63,7 @@ jobs: if: ${{ steps.release.outputs.releases_created }} with: token: ${{ env.HACKAGE_TOKEN }} + dry_run: 'false' - uses: ./.github/actions/publish-docs if: ${{ steps.release.outputs.releases_created }}