Add a release task
Some checks failed
Build / test (push) Has been cancelled
Build / doc (push) Has been cancelled
Build / audit (push) Has been cancelled

This commit is contained in:
Eugen Wissner 2024-05-01 16:29:53 +02:00
parent e071553e75
commit 859a2fd15b
Signed by: belka
GPG Key ID: A27FDC1E8EE902C0

View File

@ -0,0 +1,23 @@
name: Release
on:
push:
tags:
- '**'
jobs:
release:
runs-on: haskell
steps:
- name: Set up environment
run: |
apt-get update -y
apt-get upgrade -y
apt-get install -y nodejs pkg-config
- uses: actions/checkout@v4
- name: Upload a candidate
env:
HACKAGE_PASSWORD: ${{ secrets.HACKAGE_PASSWORD }}
run: |
cabal sdist
cabal upload --username belka --password ${HACKAGE_PASSWORD}