Skip to content

Commit 64a49db

Browse files
committed
Build debs and RPMs as part of the release process
1 parent 5b6395f commit 64a49db

File tree

3 files changed

+46
-2
lines changed

3 files changed

+46
-2
lines changed

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: goreleaser
23

34
on:
@@ -35,4 +36,3 @@ jobs:
3536
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro'
3637
# distribution:
3738
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
38-

.goreleaser.yaml

+44
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,50 @@ changelog:
4444
- '^docs:'
4545
- '^test:'
4646

47+
nfpms:
48+
- file_name_template: "{{ .ConventionalFileName }}"
49+
id: packages
50+
homepage: https://github.com/solworktech/mdtopdf
51+
description: |-
52+
Markdown to PDF converter
53+
A CLI utility which, as the name implies, generates PDF from Markdown.
54+
Features: syntax highlighting (for code blocks),
55+
dark, light and custom themes,
56+
pagination control (using horizontal lines - useful for presentations),
57+
page Footer (consisting of author, title and page number),
58+
support of non-Latin charsets and multiple fonts
59+
maintainer: Jesse Portnoy <[email protected]>
60+
license: MIT
61+
vendor: Solworktech
62+
bindir: /usr/bin
63+
section: utils
64+
contents:
65+
- src: ./custom_themes
66+
dst: /usr/share/{{ .PackageName }}
67+
expand: true
68+
file_info:
69+
mode: 0755
70+
- src: ./highlight
71+
dst: /usr/share/{{ .PackageName }}/syntax_highlight
72+
expand: true
73+
file_info:
74+
mode: 0755
75+
# mtime: "{{ .CommitDate }}"
76+
- src: ./LICENSE
77+
dst: /usr/share/doc/{{ .PackageName }}/copyright
78+
expand: true
79+
file_info:
80+
mode: 0644
81+
# mtime: "{{ .CommitDate }}"
82+
- src: ./README.md
83+
dst: /usr/share/doc/{{ .PackageName }}/
84+
expand: true
85+
file_info:
86+
mode: 0644
87+
formats:
88+
- deb
89+
- rpm
90+
- archlinux
4791
# The lines beneath this are called `modelines`. See `:help modeline`
4892
# Feel free to remove those if you don't want/use them.
4993
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ with `--recursive`, you will have the `highlight` dir in its root. Alternatively
114114
existing clone:
115115

116116
```sh
117-
git submodule update --remote
117+
git submodule update --remote --init
118118
```
119119

120120
*Note 1: the `cmd` folder has an example for the syntax highlighting.

0 commit comments

Comments
 (0)