summaryrefslogtreecommitdiff
path: root/.gitea/workflows/release.yml
blob: b815625a5ca400d08c440ccb3388209925c6c47c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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}