git.iko.soy/deriving-openapi3
on master help sign in
Upload package
commitc0d6f627e16fc80614c032a028d5018ee6434090 authoriko <ilyakooo0@gmail.com> dateSun 9 Jan 2022, 19:44 (5 years ago) parentae714de
1 file changed+12
.github/workflows/build.yaml+12
.github/workflows/build.yaml+12
@@ -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 .