Skip to content

Bump version to 0.6 #13

Bump version to 0.6

Bump version to 0.6 #13

Workflow file for this run

name: "Release"
on:
push:
paths:
- ".github/workflows/hackage.yml"
release:
types:
- released
- prereleased
jobs:
publish-to-hackage:
name: "Publish to Hackage"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: haskell/actions/setup@v2
id: install-haskell
with:
stack-no-global: true
enable-stack: true
stack-version: "latest"
- name: Configure stack
run: |
echo ${{ github.event.action }}
mkdir -p ${{ steps.install-haskell.outputs.stack-root }}
echo "save-hackage-creds: false" >> ${{ steps.install-haskell.outputs.stack-root }}/config.yaml
- name: Check source distribution
run: stack sdist .
- name: Publish `wai-saml2`
if: startsWith(github.ref, 'refs/tags/wai-saml2-') && github.event.action == 'released'
run: stack upload . --candidate
env:
HACKAGE_USERNAME: ${{ secrets.HACKAGE_USER }}
HACKAGE_PASSWORD: ${{ secrets.HACKAGE_PASSWORD }}