Bump to version 1.1 #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish to Hackage | |
on: | |
push: | |
tags: | |
- "v?[0-9]+.[0-9]+.[0-9]+" | |
- "v?[0-9]+.[0-9]+.[0-9]+.[0-9]+" | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cache | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.stack | |
.stack-work | |
key: publish | |
- name: Install Stack | |
uses: ./.github/actions/install_stack | |
# TODO: It's possible that the tag and the package version don't match, | |
# which would indicate an error and should abort the publish | |
- name: Publish Project | |
run: | | |
set -ex | |
stack --no-docker upload . | |
set +ex | |
env: | |
HACKAGE_USERNAME: ${{ secrets.HackageUsername }} | |
HACKAGE_PASSWORD: ${{ secrets.HackagePassword }} |