Skip to content

Commit

Permalink
ci: releases
Browse files Browse the repository at this point in the history
  • Loading branch information
konn committed Dec 27, 2023
1 parent d0ef018 commit e7ee710
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release
on:
push:
tags:
- "v[0-9]*"

jobs:
hackage-release:
if: >
github.event_name == 'push'
&& startsWith(github.ref, 'refs/tags/')
environment: hackage
name: Release to Hackage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: haskell/actions/setup@v2
with:
cabal-version: 3.10.1.0
enable-stack: false
- name: Cabal Check
run: cabal check
- name: Create tarball
run: cabal sdist
- uses: haskell-actions/hackage-publish@v1
with:
hackageToken: ${{ secrets.HACKAGE_ACCESS_TOKEN }}
packagesPath: dist-newstyle/sdist
publish: false

0 comments on commit e7ee710

Please sign in to comment.