Only upload package once

This commit is contained in:
Taylor Fausak 2020-11-18 21:25:09 -05:00 committed by GitHub
parent 015032b28b
commit 6e1ffb6ff2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,5 +42,5 @@ jobs:
path: dist-newstyle/sdist/witch-*.tar.gz
name: witch-${{ github.sha }}.tar.gz
- run: cabal check
- if: github.event_name == 'release'
- if: github.event_name == 'release' && matrix.os == 'ubuntu-18.04' && matrix.ghc == '8.10.2'
run: cabal upload --publish --username '${{ secrets.HACKAGE_USERNAME }}' --password '${{ secrets.HACKAGE_PASSWORD }}' dist-newstyle/sdist/witch-*.tar.gz