Skip to content

Commit

Permalink
build: Fix hackage publication integration (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
keelerm84 authored Feb 6, 2024
1 parent 69573ff commit 9195857
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/actions/ci/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion .github/actions/publish-docs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 9195857

Please sign in to comment.