Bump actions/checkout from 3 to 4 #10
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: "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 }} |