Skip to content

Commit

Permalink
Add basic setup for github actions
Browse files Browse the repository at this point in the history
Remove travis.yml and add elements to gitignore
  • Loading branch information
Alexander Mejia committed Jul 18, 2023
1 parent 75aad6f commit 5805f4d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# The present workflow was made based on the following references:
# - https://github.com/tfausak/strive/blob/main/.github/workflows/ci.yaml
# - https://hackage.haskell.org/upload
---
name: Release

on:
release:
types:
- published

concurrency:
group: release-${{ github.ref }}
cancel-in-progress: true

jobs:
cabal-upload:
uses: stackbuilders/reusable-workflows/.github/workflows/cabal-upload.yml@main
with:
ghc_version: "8.10"
cabal_version: "3.6"
ignore_uploaded_package: true
secrets:
HACKAGE_USERNAME: ${{ secrets.HACKAGE_USERNAME }}
HACKAGE_PASSWORD: ${{ secrets.HACKAGE_PASSWORD }}
4 changes: 3 additions & 1 deletion atomic-write.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,11 @@ test-suite atomic-write-test
, text
, bytestring >= 0.10.4
, hspec

build-tools: hspec-discover >= 2.0 && < 3.0

build-tools: hspec-discover >= 2.0 && < 3.0

default-language: Haskell2010
ghc-options: -Wall

Expand Down

0 comments on commit 5805f4d

Please sign in to comment.