Skip to content

Commit 43b9c81

Browse files
github actions: publish deb packages
1 parent b1a76ee commit 43b9c81

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

‎.github/workflows/release.yml‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ jobs:
2323
with:
2424
fetch-depth: 0
2525

26+
# Cloudsmith CLI tooling for pushing releases
27+
# See https://help.cloudsmith.io/docs/cli
28+
- name: Install Cloudsmith CLI
29+
run: pip install --upgrade cloudsmith-cli
30+
31+
2632
- name: Run GoReleaser
2733
uses: goreleaser/goreleaser-action@v6
2834
with:
@@ -32,3 +38,21 @@ jobs:
3238
env:
3339
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3440
TAP_GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }}
41+
42+
43+
# Publish to the "stable" repo on Cloudsmith
44+
# See https://cloudsmith.io/~html-to-markdown/repos/stable/
45+
- name: Publish .deb to Cloudsmith
46+
env:
47+
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
48+
run: |
49+
for filename in dist/*.deb; do
50+
# armv6 and armv7 are both "armhf" so we can skip the duplicate
51+
if [[ "$filename" == *"armv6"* ]]; then
52+
echo "Skipping $filename"
53+
continue
54+
fi
55+
56+
echo "Pushing $filename to 'stable'"
57+
cloudsmith push deb html-to-markdown/stable/any-distro/any-version $filename
58+
done

‎.goreleaser.yaml‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,20 @@ brews:
4545
name: homebrew-tap
4646
token: "{{ .Env.TAP_GITHUB_TOKEN }}"
4747

48+
nfpms:
49+
- id: default
50+
package_name: html2markdown
51+
52+
vendor: JohannesKaufmann
53+
homepage: https://github.com/JohannesKaufmann/html-to-markdown
54+
maintainer: Johannes Kaufmann <johannes@joina.de>
55+
description: |
56+
Convert HTML to Markdown. Even works with entire websites.
57+
license: MIT
58+
59+
formats:
60+
- deb
61+
4862
changelog:
4963
sort: asc
5064
filters:

0 commit comments

Comments
 (0)