Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add release workflow #2

Merged
merged 2 commits into from
Sep 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "Release"
on:
release:
types: [created]
workflow_dispatch:

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Haskell env
uses: haskell/actions/setup@v2
with:
enable-stack: false
- run: make publish
- uses: haskell-actions/hackage-publish@v1
with:
hackageToken: "${{ secrets.HACKAGE_AUTH_TOKEN }}"
packagesPath: dist-newstyle/sdist
docsPath: dist-newstyle
publish: true
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ publish: clean prepare
cabal v2-haddock --haddock-for-hackage
cabal sdist ./manifest/extism-manifest.cabal
cabal sdist
# TODO: upload

format:
# TODO
Expand Down
6 changes: 3 additions & 3 deletions extism.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ version: 0.5.0
license: BSD-3-Clause
maintainer: oss@extism.org
author: Extism authors
bug-reports: https://github.com/extism/extism
bug-reports: https://github.com/extism/haskell-sdk
synopsis: Extism bindings
description: Bindings to Extism, the universal plugin system
category: Plugins, WebAssembly
extra-doc-files: CHANGELOG.md
extra-doc-files: cabal.project README.md CHANGELOG.md

library
exposed-modules: Extism Extism.HostFunction
Expand Down Expand Up @@ -43,4 +43,4 @@ test-suite extism-test
base,
extism,
bytestring,
HUnit
HUnit >= 1.5.0 && < 2
2 changes: 1 addition & 1 deletion manifest/extism-manifest.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: 0.3.0
license: BSD-3-Clause
maintainer: oss@extism.org
author: Extism authors
bug-reports: https://github.com/extism/extism
bug-reports: https://github.com/extism/haskell-sdk
synopsis: Extism manifest bindings
description: Bindings to Extism WebAssembly manifest
category: Plugins, WebAssembly
Expand Down
Loading