Skip to content

Commit

Permalink
github actions: publish deb packages
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesKaufmann committed Nov 21, 2024
1 parent b1a76ee commit 43b9c81
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ jobs:
with:
fetch-depth: 0

# Cloudsmith CLI tooling for pushing releases
# See https://help.cloudsmith.io/docs/cli
- name: Install Cloudsmith CLI
run: pip install --upgrade cloudsmith-cli


- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
Expand All @@ -32,3 +38,21 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAP_GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }}


# Publish to the "stable" repo on Cloudsmith
# See https://cloudsmith.io/~html-to-markdown/repos/stable/
- name: Publish .deb to Cloudsmith
env:
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
run: |
for filename in dist/*.deb; do
# armv6 and armv7 are both "armhf" so we can skip the duplicate
if [[ "$filename" == *"armv6"* ]]; then
echo "Skipping $filename"
continue
fi
echo "Pushing $filename to 'stable'"
cloudsmith push deb html-to-markdown/stable/any-distro/any-version $filename
done
14 changes: 14 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,20 @@ brews:
name: homebrew-tap
token: "{{ .Env.TAP_GITHUB_TOKEN }}"

nfpms:
- id: default
package_name: html2markdown

vendor: JohannesKaufmann
homepage: https://github.com/JohannesKaufmann/html-to-markdown
maintainer: Johannes Kaufmann <johannes@joina.de>
description: |
Convert HTML to Markdown. Even works with entire websites.
license: MIT

formats:
- deb

changelog:
sort: asc
filters:
Expand Down

0 comments on commit 43b9c81

Please sign in to comment.