Skip to content

Commit 4496852

Browse files
authored
Update README.md
1 parent f7030dc commit 4496852

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

README.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,30 @@
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+
```

0 commit comments

Comments
 (0)