From 120a85632d97623eceb0c565b7fc6c3bf1db27fe Mon Sep 17 00:00:00 2001 From: Lei Zhu Date: Sun, 25 Aug 2024 21:26:46 +0800 Subject: [PATCH] Add release script --- .github/workflows/release.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..4053b74 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,21 @@ +name: Release + +on: + release: + types: [released] + +jobs: + package: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - uses: haskell-actions/setup@v2 + - run: cabal clean + - run: cabal build + - run: cabal sdist + + - uses: haskell-actions/hackage-publish@v1.1 + with: + hackageToken: ${{ secrets.HACKAGE_AUTH_TOKEN }} + publish: false # upload candidate