Skip to content

Commit 4ce6570

Browse files
committed
update workflow
1 parent 6d55f07 commit 4ce6570

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

.github/workflows/release.yml

+20-3
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,19 @@ jobs:
1616
with:
1717
go-version: '>=1.19.0'
1818

19+
- name: Install Xcode Command Line Tools
20+
run: |
21+
if ! xcode-select -p &> /dev/null; then
22+
xcode-select --install
23+
fi
24+
25+
- name: Install pandoc
26+
run: brew install pandoc
27+
1928
- name: Build
20-
run: go build -v -o md2cb
29+
run: |
30+
export CGO_ENABLED=1
31+
go build -v -o md2cb
2132
2233
- name: Create Release
2334
id: create_release
@@ -29,6 +40,12 @@ jobs:
2940
release_name: Release ${{ github.ref }}
3041
draft: false
3142
prerelease: false
43+
body: |
44+
macOS binary for md2cb
45+
46+
Requirements:
47+
- macOS
48+
- pandoc (`brew install pandoc`)
3249
3350
- name: Upload Release Asset
3451
uses: actions/upload-release-asset@v1
@@ -37,5 +54,5 @@ jobs:
3754
with:
3855
upload_url: ${{ steps.create_release.outputs.upload_url }}
3956
asset_path: ./md2cb
40-
asset_name: md2cb
41-
asset_content_type: application/octet-stream
57+
asset_name: md2cb-macos
58+
asset_content_type: application/octet-stream

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
A simple command line tool that converts markdown to rich text and copies it to the clipboard. Perfect for converting markdown tables to rich text that can be pasted into applications that support formatted text.
44

5+
## BEWARE
6+
7+
> This is MAC OS only!
8+
59
## Requirements
610

711
- macOS (uses native Cocoa framework for clipboard operations)

0 commit comments

Comments
 (0)