@@ -38,6 +38,10 @@ jobs:
3838 ${{ runner.os }}-stack-${{ hashFiles('stack.yaml') }}
3939 ${{ runner.os }}-stack
4040
41+ - name: Upgrade stack
42+ shell: bash
43+ run: stack upgrade --git
44+
4145 - name: Build
4246 shell: bash
4347 run: |
@@ -48,3 +52,11 @@ jobs:
4852 run: |
4953 stack install ormolu
5054 ormolu -o -XTypeApplications -o -XCPP -m check $(find . -type f -name "*.hs")
55+
56+ - name: Publish candidate
57+ shell: bash
58+ if: github.event_name == 'release'
59+ env:
60+ HACKAGE_KEY: ${{ secrets.HACKAGE_TOKEN }}
61+ run: |
62+ stack upload --pvp-bounds both --test-tarball --candidate .