-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Add semantic release config (#199)
* chore: Include releaserc file * chore(ci): Remove version from cabal file * fix(ci): Remove unused branch from releaserc file
- Loading branch information
Showing
3 changed files
with
57 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,38 @@ | ||
name: Release | ||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
release: | ||
name: "Release" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
# Workaround for issue: https://github.com/cycjimmy/semantic-release-action/issues/159 | ||
# Had to pin to version 14 | ||
- name: "Pin node version" | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14' | ||
# Use haskell environment to run cabal configure needed for semantic-release-hackage | ||
- name: Setup Haskell | ||
id: setup-haskell-cabal | ||
uses: haskell-actions/setup@v2 | ||
with: | ||
ghc-version: "9.0" | ||
cabal-version: "3.8" | ||
- name: Semantic Release | ||
run: cabal configure --enable-tests | ||
- name: Semantic Release | ||
uses: cycjimmy/semantic-release-action@v4 | ||
with: | ||
extra_plugins: | | ||
@semantic-release/commit-analyzer | ||
@semantic-release/release-notes-generator | ||
@semantic-release/github | ||
semantic-release-hackage@1.1.2 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
HACKAGE_TOKEN: ${{ secrets.HACKAGE_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,18 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/semantic-release", | ||
"branches": ["main"], | ||
"plugins": [ | ||
"@semantic-release/commit-analyzer", | ||
"@semantic-release/release-notes-generator", | ||
[ | ||
"semantic-release-hackage", | ||
{ | ||
"packageName": "dotenv", | ||
"versionPrefix": "0.", | ||
"publishDocumentation": true | ||
} | ||
], | ||
"@semantic-release/github" | ||
], | ||
"tagFormat": "v0.${version}" | ||
} |
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