Skip to content

Commit

Permalink
Add a release workflow (release a candidate on Hackage)
Browse files Browse the repository at this point in the history
  • Loading branch information
fizruk committed Feb 2, 2024
1 parent f1c84d4 commit 2d738df
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release
on:
release:
types: [published]

permissions:
contents: write

jobs:
hackage:
name: "Upload a new candidate on Hackage"
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout repository
uses: actions/checkout@v3

- name: 🧰 Setup Stack
uses: freckle/stack-action@v4
with:
fast: false

- name: 🔨 Generate package dist tarball
run: stack sdist --tar-dir packages/

- name: 🚀 Upload on Hackage
uses: haskell-actions/hackage-publish@v1
with:
hackageToken: ${{ secrets.HACKAGE_AUTH_TOKEN }}
packagesPath: packages
publish: false

0 comments on commit 2d738df

Please sign in to comment.