Skip to content

Commit 288f8b3

Browse files
author
Damir Porobic
committed
Add packaging step
1 parent 107937e commit 288f8b3

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/windows.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,4 +145,18 @@ jobs:
145145
mkdir build
146146
cd build
147147
cmake .. -G"NMake Makefiles" -DCMAKE_PREFIX_PATH="$env:INSTALL_PREFIX" -DCMAKE_BUILD_TYPE=Release
148-
nmake
148+
nmake
149+
150+
- name: Package
151+
run: |
152+
mkdir packageDir
153+
cp build/src/ksnip-plugin-ocr.dll packageDir/ksnip-plugin-ocr.dll
154+
cp $env:INSTALL_PREFIX/lib/* packageDir/
155+
7z a ksnip-plugin-ocr-${VERSION}-windows.zip ./packageDir/*
156+
157+
- name: Upload files
158+
env:
159+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
160+
run: |
161+
curl -L https://github.com/probonopd/uploadtool/raw/master/upload.sh --output upload.sh
162+
bash upload.sh ksnip-plugin-ocr-*.zip

0 commit comments

Comments
 (0)