@@ -38,6 +38,10 @@ jobs:
38 ${{ runner.os }}-stack-${{ hashFiles('stack.yaml') }}
38 ${{ runner.os }}-stack-${{ hashFiles('stack.yaml') }}
39 ${{ runner.os }}-stack
39 ${{ runner.os }}-stack
41+ - name: Upgrade stack
43+ run: stack upgrade --git
41 - name: Build
45 - name: Build
42 shell: bash
46 shell: bash
@@ -48,3 +52,11 @@ jobs:
49 stack install ormolu
53 stack install ormolu
50 ormolu -o -XTypeApplications -o -XCPP -m check $(find . -type f -name "*.hs")
54 ormolu -o -XTypeApplications -o -XCPP -m check $(find . -type f -name "*.hs")
56+ - name: Publish candidate
58+ if: github.event_name == 'release'
60+ HACKAGE_KEY: ${{ secrets.HACKAGE_TOKEN }}
62+ stack upload --pvp-bounds both --test-tarball --candidate .