Skip to content

Commit

Permalink
Refactor release Job
Browse files Browse the repository at this point in the history
- Float `env` out to Job-level
- Add a little whitespace
- Add `name` to `stack upload` steps
- Comment why the old resolver
  • Loading branch information
pbrisbin committed Feb 20, 2024
1 parent 3988950 commit 025717f
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ jobs:
release:
needs: tag
if: needs.tag.outputs.tag

runs-on: ubuntu-latest

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
Expand All @@ -26,8 +31,9 @@ jobs:
test: false
stack-build-arguments: --haddock --haddock-for-hackage

- run: |
stack --stack-yaml stack-lts-18.28.yaml upload --pvp-bounds lower .
stack upload --documentation .
env:
HACKAGE_KEY: ${{ secrets.HACKAGE_UPLOAD_API_KEY }}
# Upload using our oldest, tested resolver, to set the lowest lower bounds
- name: "Release to Hackage"
run: stack --stack-yaml stack-lts-18.28.yaml upload --pvp-bounds lower .

- name: "Upload documentation"
run: stack upload --documentation .

0 comments on commit 025717f

Please sign in to comment.