Add a release task

This commit is contained in:
Eugen Wissner 2024-05-01 16:29:53 +02:00
parent e071553e75
commit 1c4584abdd
Signed by: belka
GPG Key ID: A27FDC1E8EE902C0
2 changed files with 25 additions and 0 deletions

View File

@ -2,6 +2,8 @@ name: Build
on: on:
push: push:
branches:
- '**'
pull_request: pull_request:
branches: [master] branches: [master]

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}