Automatically upload releases to Hackage

This commit is contained in:
Taylor Fausak 2020-11-14 17:39:35 +00:00
parent 6c4d5a2d7a
commit 0e10c73247

View File

@ -38,9 +38,5 @@ jobs:
path: dist-newstyle/sdist/witch-*.tar.gz
name: witch-${{ github.sha }}.tar.gz
- run: cabal check
- run: echo '${{ toJson(github.event) }}'
- run: echo '${{ github.event_name }}'
- run: echo '${{ github.event_path }}'
- run: echo '${{ github.ref }}'
# - if: false
# run: cabal upload --publish --username '${{ secrets.HACKAGE_USERNAME }}' --password '${{ secrets.HACKAGE_PASSWORD }}' "dist-newstyle/sdist/witch-*.tar.gz"
- if: github.event_name == 'release'
run: cabal upload --publish --username '${{ secrets.HACKAGE_USERNAME }}' --password '${{ secrets.HACKAGE_PASSWORD }}' "dist-newstyle/sdist/witch-*.tar.gz"