File tree Expand file tree Collapse file tree 1 file changed +29
-1
lines changed
Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Original file line number Diff line number Diff line change 11# hackage-publish
2- A GitHub action for publishing packages on Hackage
2+ A GitHub action for publishing packages and documentation to Hackage
3+
4+ ## Usage Examples
5+
6+ This step publishes packages and documentation as candidates on Hackage using the specified authentication token
7+
8+ ``` yaml
9+ - uses : haskell-actions/hackage-publish@v1
10+ with :
11+ hackageToken : ${{ secrets.HACKAGE_AUTH_TOKEN }}
12+ packagesPath : ${{ runner.temp }}/packages
13+ docsPath : ${{ runner.temp }}/docs
14+ publish : false
15+ ` ` `
16+
17+ ` docsPath` parameter is optional and the action will not try uploading documentation when it is not specified.
18+ When `docsPath` is specified, but doesn't contain documentation for one or many packages in `packagePath`,
19+ these packages are uploaded without documentation. Missing documentation never results into an execution error.
20+
21+ To publish to a custom/private Hackage, specify `hackageServer` parameter to the custom/private Hackage server URI
22+
23+ ` ` ` yaml
24+ - uses: haskell-actions/hackage-publish@v1
25+ with:
26+ hackageServer: ${{ secrets.HACKAGE_SERVER }}
27+ hackageToken: ${{ secrets.HACKAGE_AUTH_TOKEN }}
28+ packagesPath: ${{ runner.temp }}/packages
29+ publish: true
30+ ` ` `
You can’t perform that action at this time.
0 commit comments