Tweak release.yml

This commit is contained in:
patrick brisbin 2021-05-13 14:43:29 -04:00
parent f892fa472d
commit 3026e1e70d
No known key found for this signature in database
GPG Key ID: 20299C6982D938FB

View File

@ -1,10 +1,8 @@
name: Release to Hackage
name: Release
on:
push:
branches: main
tags:
- 'v*'
jobs:
release:
@ -13,14 +11,13 @@ jobs:
- uses: actions/checkout@v2
- id: tag
uses: freckle/haskell-tag-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: freckle/haskell-tag-action@v1
# If we're reacting to a manually pushed tag, or we just created one
- if: ${{ startsWith(github.ref, 'refs/tags/') || steps.tag.tag }}
env:
HACKAGE_API_KEY: ${{ secrets.HACKAGE_UPLOAD_API_KEY }}
- if: steps.tag.outputs.tag }}
uses: freckle/stack-upload-action@main
with:
pvp-bounds: both
env:
HACKAGE_API_KEY: ${{ secrets.HACKAGE_UPLOAD_API_KEY }}