-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add build workflow for GH to repo * :Add draft workflow and simple Readme * Update draft workflow to not include binaries --------- Co-authored-by: Alexander Mejia <[email protected]>
- Loading branch information
Showing
4 changed files
with
69 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# CI Workflows | ||
|
||
## Overview | ||
|
||
- [Build](build.yml) | ||
- Build and test Haskell code | ||
- [Draft](draft.yml) | ||
- Create a GH draft release with a static binary | ||
- [Release](release.yml) | ||
- Upload the package and docs to Hackage (release candidate) | ||
|
||
## Events | ||
|
||
```mermaid | ||
graph LR; | ||
event[GH Event]-->|on push|Build; | ||
event-->|tag created|Draft; | ||
Draft-->|create draft release|End; | ||
event-->|release published|Release; | ||
Release-->|upload artifacts to Hackage - release candidate|End; | ||
Build-->End; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Release package to Github | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Create release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
body_path: CHANGELOG.md | ||
draft: true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters