Skip to content

Commit

Permalink
automate releases
Browse files Browse the repository at this point in the history
  • Loading branch information
domenkozar committed Sep 6, 2022
1 parent eda7d91 commit 75c47cd
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: "Release"
on:
push:
tags:
- v**
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: mad9000/actions-find-and-replace-string@1
id: version
with:
source: "${{ github.ref_name }}"
find: 'v'
replace: ''
- uses: nikita-volkov/[email protected]
with:
mode: set
set-value: "${{ steps.version.outputs.value }}"
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "Bumping *.cabal to ${{ steps.version.outputs.value }}"
branch: master
- run: cabal v2-sdist all
- uses: haskell-actions/hackage-publish@v1
with:
# http://hackage.haskell.org/users/account-management
hackageToken: ${{ secrets.HACKAGE_AUTH_TOKEN }}
packagesPath: dist-newstyle/sdist
#docsPath: ${{ runner.temp }}/docs
publish: true

0 comments on commit 75c47cd

Please sign in to comment.