build.yml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580
  1. name: Build
  2. on:
  3. [push]
  4. env:
  5. JAVA_VERSION: 16
  6. defaults:
  7. run:
  8. shell: bash
  9. jobs:
  10. test:
  11. name: Compile and Test
  12. runs-on: ubuntu-latest
  13. if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')"
  14. steps:
  15. - uses: actions/checkout@v2
  16. - uses: actions/setup-java@v1
  17. with:
  18. java-version: ${{ env.JAVA_VERSION }}
  19. - uses: actions/cache@v2
  20. with:
  21. path: ~/.m2/repository
  22. key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
  23. restore-keys: |
  24. ${{ runner.os }}-maven-
  25. - name: Ensure to use tagged version
  26. run: mvn versions:set -DnewVersion=${GITHUB_REF##*/} # use shell parameter expansion to strip of 'refs/tags'
  27. if: startsWith(github.ref, 'refs/tags/')
  28. - name: Build and Test
  29. run: mvn -B clean install jacoco:report -Pcoverage,dependency-check
  30. - name: Upload code coverage report
  31. id: codacyCoverageReporter
  32. run: bash <(curl -Ls https://coverage.codacy.com/get.sh)
  33. env:
  34. CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
  35. continue-on-error: true
  36. #
  37. # Buildkit
  38. #
  39. buildkit:
  40. name: Build ${{ matrix.profile }}-buildkit
  41. needs: test
  42. runs-on: ${{ matrix.os }}
  43. strategy:
  44. fail-fast: true
  45. matrix:
  46. include:
  47. - os: ubuntu-latest
  48. profile: linux
  49. - os: windows-latest
  50. profile: win
  51. - os: macos-latest
  52. profile: mac
  53. steps:
  54. - uses: actions/checkout@v2
  55. - uses: actions/setup-java@v1
  56. with:
  57. java-version: ${{ env.JAVA_VERSION }}
  58. - uses: actions/cache@v2
  59. with:
  60. path: ~/.m2/repository
  61. key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
  62. restore-keys: |
  63. ${{ runner.os }}-maven-
  64. - name: Copy .jar files
  65. run: mvn -B clean package -DskipTests -P${{ matrix.profile }}
  66. - name: Patch buildkit
  67. run: |
  68. cp LICENSE.txt target
  69. cp dist/${{ matrix.profile }}/launcher* target
  70. cp target/cryptomator-*.jar target/mods
  71. - name: Upload ${{ matrix.profile }}-buildkit
  72. uses: actions/upload-artifact@v2
  73. with:
  74. name: ${{ matrix.profile }}-buildkit
  75. path: |
  76. target/libs
  77. target/mods
  78. target/LICENSE.txt
  79. target/${{ matrix.launcher }}
  80. if-no-files-found: error
  81. #
  82. # Release Metadata
  83. #
  84. metadata:
  85. name: Determine Version Metadata
  86. runs-on: ubuntu-latest
  87. needs: test
  88. outputs:
  89. versionStr: ${{ steps.versions.outputs.versionStr }}
  90. versionNum: ${{ steps.versions.outputs.versionNum }}
  91. revNum: ${{ steps.versions.outputs.revNum }}
  92. steps:
  93. - uses: actions/checkout@v2
  94. with:
  95. fetch-depth: 0
  96. - id: versions
  97. run: |
  98. if [[ $GITHUB_REF == refs/tags/* ]]; then
  99. echo "::set-output name=versionStr::${GITHUB_REF##*/}"
  100. echo "::set-output name=versionNum::${GITHUB_REF##*/}"
  101. else
  102. echo "::set-output name=versionStr::SNAPSHOT"
  103. echo "::set-output name=versionNum::99.0.0"
  104. fi
  105. echo "::set-output name=revNum::`git rev-list --count HEAD`"
  106. #
  107. # Application Directory
  108. #
  109. appdir:
  110. name: Create ${{ matrix.profile }}-appdir
  111. needs: [buildkit, metadata]
  112. runs-on: ${{ matrix.os }}
  113. strategy:
  114. fail-fast: true
  115. matrix:
  116. include:
  117. - os: ubuntu-latest
  118. profile: linux
  119. jpackageoptions: >
  120. --app-version "${{ needs.metadata.outputs.versionNum }}.${{ needs.metadata.outputs.revNum }}"
  121. --java-options "-Dfile.encoding=\"utf-8\""
  122. --java-options "-Dcryptomator.logDir=\"~/.local/share/Cryptomator/logs\""
  123. --java-options "-Dcryptomator.settingsPath=\"~/.config/Cryptomator/settings.json:~/.Cryptomator/settings.json\""
  124. --java-options "-Dcryptomator.ipcSocketPath=\"~/.config/Cryptomator/ipc.socket\""
  125. --java-options "-Dcryptomator.mountPointsDir=\"~/.local/share/Cryptomator/mnt\""
  126. --java-options "-Dcryptomator.showTrayIcon=false"
  127. --java-options "-Dcryptomator.buildNumber=\"appimage-${{ needs.metadata.outputs.revNum }}\""
  128. --resource-dir dist/linux/resources
  129. - os: windows-latest
  130. profile: win
  131. jpackageoptions: >
  132. --app-version "${{ needs.metadata.outputs.versionNum }}.${{ needs.metadata.outputs.revNum }}"
  133. --java-options "-Dfile.encoding=\"utf-8\""
  134. --java-options "-Dcryptomator.logDir=\"~/AppData/Roaming/Cryptomator\""
  135. --java-options "-Dcryptomator.settingsPath=\"~/AppData/Roaming/Cryptomator/settings.json\""
  136. --java-options "-Dcryptomator.ipcSocketPath=\"~/AppData/Roaming/Cryptomator/ipc.socket\""
  137. --java-options "-Dcryptomator.keychainPath=\"~/AppData/Roaming/Cryptomator/keychain.json\""
  138. --java-options "-Dcryptomator.mountPointsDir=\"~/Cryptomator\""
  139. --java-options "-Dcryptomator.showTrayIcon=true"
  140. --java-options "-Dcryptomator.buildNumber=\"msi-${{ needs.metadata.outputs.revNum }}\""
  141. --resource-dir dist/win/resources
  142. --icon dist/win/resources/Cryptomator.ico
  143. - os: macos-latest
  144. profile: mac
  145. jpackageoptions: >
  146. --app-version "${{ needs.metadata.outputs.versionNum }}"
  147. --java-options "-Dfile.encoding=\"utf-8\""
  148. --java-options "-Dcryptomator.logDir=\"~/Library/Logs/Cryptomator\""
  149. --java-options "-Dcryptomator.settingsPath=\"~/Library/Application Support/Cryptomator/settings.json\""
  150. --java-options "-Dcryptomator.ipcSocketPath=\"~/Library/Application Support/Cryptomator/ipc.socket\""
  151. --java-options "-Dcryptomator.showTrayIcon=true"
  152. --java-options "-Dcryptomator.buildNumber=\"dmg-${{ needs.metadata.outputs.revNum }}\""
  153. --mac-package-identifier org.cryptomator
  154. --resource-dir dist/mac/resources
  155. steps:
  156. - uses: actions/checkout@v2
  157. - uses: actions/setup-java@v1
  158. with:
  159. java-version: ${{ env.JAVA_VERSION }}
  160. - name: Download ${{ matrix.profile }}-buildkit
  161. uses: actions/download-artifact@v2
  162. with:
  163. name: ${{ matrix.profile }}-buildkit
  164. path: buildkit
  165. - name: Create Runtime Image
  166. run: >
  167. ${JAVA_HOME}/bin/jlink
  168. --verbose
  169. --output runtime
  170. --module-path "${JAVA_HOME}/jmods"
  171. --add-modules java.base,java.desktop,java.logging,java.naming,java.net.http,java.scripting,java.sql,java.xml,jdk.unsupported,jdk.crypto.ec,jdk.accessibility
  172. --no-header-files
  173. --no-man-pages
  174. --strip-debug
  175. --compress=1
  176. - name: Create App Directory
  177. run: >
  178. ${JAVA_HOME}/bin/jpackage
  179. --verbose
  180. --type app-image
  181. --runtime-image runtime
  182. --input buildkit/libs
  183. --module-path buildkit/mods
  184. --module org.cryptomator.desktop/org.cryptomator.launcher.Cryptomator
  185. --dest appdir
  186. --name Cryptomator
  187. --vendor "Skymatic GmbH"
  188. --copyright "(C) 2016 - 2021 Skymatic GmbH"
  189. --java-options "-Xss5m"
  190. --java-options "-Xmx256m"
  191. ${{ matrix.jpackageoptions }}
  192. - name: Create appdir.tar
  193. run: tar -cvf appdir.tar appdir
  194. - name: Upload ${{ matrix.profile }}-appdir
  195. uses: actions/upload-artifact@v2
  196. with:
  197. name: ${{ matrix.profile }}-appdir
  198. path: appdir.tar
  199. if-no-files-found: error
  200. #
  201. # Linux Cryptomator.AppImage
  202. #
  203. linux-appimage:
  204. name: Build Cryptomator.AppImage
  205. runs-on: ubuntu-latest
  206. needs: [appdir, metadata]
  207. steps:
  208. - uses: actions/checkout@v2
  209. - name: Download linux-appdir
  210. uses: actions/download-artifact@v2
  211. with:
  212. name: linux-appdir
  213. - name: Untar appdir.tar
  214. run: |
  215. tar -xvf appdir.tar
  216. - name: Patch Cryptomator.AppDir
  217. run: |
  218. mv appdir/Cryptomator Cryptomator.AppDir
  219. cp -r dist/linux/appimage/resources/AppDir/* Cryptomator.AppDir/
  220. envsubst '${REVISION_NO}' < dist/linux/appimage/resources/AppDir/bin/cryptomator.sh > Cryptomator.AppDir/bin/cryptomator.sh
  221. ln -s usr/share/icons/hicolor/scalable/apps/org.cryptomator.Cryptomator.svg Cryptomator.AppDir/org.cryptomator.Cryptomator.svg
  222. ln -s usr/share/icons/hicolor/scalable/apps/org.cryptomator.Cryptomator.svg Cryptomator.AppDir/Cryptomator.svg
  223. ln -s usr/share/icons/hicolor/scalable/apps/org.cryptomator.Cryptomator.svg Cryptomator.AppDir/.DirIcon
  224. ln -s usr/share/applications/org.cryptomator.Cryptomator.desktop Cryptomator.AppDir/Cryptomator.desktop
  225. ln -s bin/cryptomator.sh Cryptomator.AppDir/AppRun
  226. env:
  227. REVISION_NO: ${{ needs.metadata.outputs.revNum }}
  228. - name: Extract libjffi.so # workaround for https://github.com/cryptomator/cryptomator-linux/issues/27
  229. run: |
  230. JFFI_NATIVE_JAR=`ls lib/app/ | grep -e 'jffi-[1-9]\.[0-9]\{1,2\}.[0-9]\{1,2\}-native.jar'`
  231. ${JAVA_HOME}/bin/jar -xf lib/app/${JFFI_NATIVE_JAR} /jni/x86_64-Linux/
  232. mv jni/x86_64-Linux/* lib/app/libjffi.so
  233. working-directory: Cryptomator.AppDir
  234. - name: Download AppImageKit
  235. run: |
  236. curl -L https://github.com/AppImage/AppImageKit/releases/download/13/appimagetool-x86_64.AppImage -o appimagetool.AppImage
  237. chmod +x appimagetool.AppImage
  238. ./appimagetool.AppImage --appimage-extract
  239. - name: Prepare GPG-Agent for signing with key 615D449FE6E6A235
  240. run: |
  241. echo "${GPG_PRIVATE_KEY}" | gpg --batch --quiet --import
  242. echo "${GPG_PASSPHRASE}" | gpg --batch --quiet --passphrase-fd 0 --pinentry-mode loopback -u 615D449FE6E6A235 --dry-run --sign Cryptomator.AppDir/AppRun
  243. env:
  244. GPG_PRIVATE_KEY: ${{ secrets.RELEASES_GPG_PRIVATE_KEY }}
  245. GPG_PASSPHRASE: ${{ secrets.RELEASES_GPG_PASSPHRASE }}
  246. - name: Build AppImage
  247. run: >
  248. ./squashfs-root/AppRun Cryptomator.AppDir cryptomator-${{ needs.metadata.outputs.versionStr }}-x86_64.AppImage
  249. -u 'gh-releases-zsync|cryptomator|cryptomator|latest|cryptomator-*-x86_64.AppImage.zsync'
  250. --sign --sign-key=615D449FE6E6A235 --sign-args="--batch --pinentry-mode loopback"
  251. - name: Create Detached GPG Signature
  252. run: |
  253. gpg --batch --quiet --pinentry-mode loopback -u 615D449FE6E6A235 --detach-sign -a cryptomator-${{ needs.metadata.outputs.versionStr }}-x86_64.AppImage
  254. gpg --batch --quiet --pinentry-mode loopback -u 615D449FE6E6A235 --detach-sign -a cryptomator-${{ needs.metadata.outputs.versionStr }}-x86_64.AppImage.zsync
  255. - name: Upload AppImage
  256. uses: actions/upload-artifact@v2
  257. with:
  258. name: linux-appimage
  259. path: |
  260. cryptomator-${{ needs.metadata.outputs.versionStr }}-x86_64.AppImage
  261. cryptomator-${{ needs.metadata.outputs.versionStr }}-x86_64.AppImage.asc
  262. cryptomator-${{ needs.metadata.outputs.versionStr }}-x86_64.AppImage.zsync
  263. cryptomator-${{ needs.metadata.outputs.versionStr }}-x86_64.AppImage.zsync.asc
  264. if-no-files-found: error
  265. #
  266. # macOS Cryptomator.app
  267. #
  268. mac-app:
  269. name: Build Cryptomator.app
  270. runs-on: macos-latest
  271. needs: [appdir, metadata]
  272. steps:
  273. - uses: actions/checkout@v2
  274. - name: Download mac-appdir
  275. uses: actions/download-artifact@v2
  276. with:
  277. name: mac-appdir
  278. - name: Untar appdir.tar
  279. run: tar -xvf appdir.tar
  280. - name: Patch Cryptomator.app
  281. run: |
  282. mv appdir/Cryptomator.app Cryptomator.app
  283. sed -i '' "s|###BUNDLE_SHORT_VERSION_STRING###|${VERSION_NO}|g" Cryptomator.app/Contents/Info.plist
  284. sed -i '' "s|###BUNDLE_VERSION###|${REVISION_NO}|g" Cryptomator.app/Contents/Info.plist
  285. env:
  286. VERSION_NO: ${{ needs.metadata.outputs.versionNum }}
  287. REVISION_NO: ${{ needs.metadata.outputs.revNum }}
  288. - name: Install codesign certificate
  289. env:
  290. CODESIGN_P12_BASE64: ${{ secrets.MACOS_CODESIGN_P12_BASE64 }}
  291. CODESIGN_P12_PW: ${{ secrets.MACOS_CODESIGN_P12_PW }}
  292. CODESIGN_TMP_KEYCHAIN_PW: ${{ secrets.MACOS_CODESIGN_TMP_KEYCHAIN_PW }}
  293. run: |
  294. # create variables
  295. CERTIFICATE_PATH=$RUNNER_TEMP/codesign.p12
  296. KEYCHAIN_PATH=$RUNNER_TEMP/codesign.keychain-db
  297. # import certificate and provisioning profile from secrets
  298. echo -n "$CODESIGN_P12_BASE64" | base64 --decode --output $CERTIFICATE_PATH
  299. # create temporary keychain
  300. security create-keychain -p "$CODESIGN_TMP_KEYCHAIN_PW" $KEYCHAIN_PATH
  301. security set-keychain-settings -lut 900 $KEYCHAIN_PATH
  302. security unlock-keychain -p "$CODESIGN_TMP_KEYCHAIN_PW" $KEYCHAIN_PATH
  303. # import certificate to keychain
  304. security import $CERTIFICATE_PATH -P "$CODESIGN_P12_PW" -A -t cert -f pkcs12 -k $KEYCHAIN_PATH
  305. security list-keychain -d user -s $KEYCHAIN_PATH
  306. - name: Codesign
  307. env:
  308. CODESIGN_IDENTITY: ${{ secrets.MACOS_CODESIGN_IDENTITY }}
  309. run: |
  310. find Cryptomator.app/Contents/runtime/Contents/MacOS -name '*.dylib' -exec codesign --force -s ${CODESIGN_IDENTITY} {} \;
  311. for JAR_PATH in `find Cryptomator.app -name "*.jar"`; do
  312. if [[ `unzip -l ${JAR_PATH} | grep '.dylib\|.jnilib'` ]]; then
  313. JAR_FILENAME=$(basename ${JAR_PATH})
  314. OUTPUT_PATH=${JAR_PATH%.*}
  315. echo "Codesigning libs in ${JAR_FILENAME}..."
  316. unzip -q ${JAR_PATH} -d ${OUTPUT_PATH}
  317. find ${OUTPUT_PATH} -name '*.dylib' -exec codesign -s ${CODESIGN_IDENTITY} {} \;
  318. find ${OUTPUT_PATH} -name '*.jnilib' -exec codesign -s ${CODESIGN_IDENTITY} {} \;
  319. rm ${JAR_PATH}
  320. pushd ${OUTPUT_PATH} > /dev/null
  321. zip -qr ../${JAR_FILENAME} *
  322. popd > /dev/null
  323. rm -r ${OUTPUT_PATH}
  324. fi
  325. done
  326. echo "Codesigning Cryptomator.app..."
  327. codesign --force --deep --entitlements dist/mac/Cryptomator.entitlements -o runtime -s ${CODESIGN_IDENTITY} Cryptomator.app
  328. - name: Clean up codesign certificate
  329. if: ${{ always() }}
  330. run: security delete-keychain $RUNNER_TEMP/codesign.keychain-db
  331. - name: Create app.tar
  332. run: tar -cvf app.tar Cryptomator.app
  333. - name: Upload mac-app
  334. uses: actions/upload-artifact@v2
  335. with:
  336. name: mac-app
  337. path: app.tar
  338. if-no-files-found: error
  339. #
  340. # macOS Cryptomator.dmg
  341. #
  342. mac-dmg:
  343. name: Build Cryptomator.dmg
  344. runs-on: macos-11
  345. needs: [mac-app, metadata]
  346. steps:
  347. - uses: actions/checkout@v2
  348. - name: Download mac-appdir
  349. uses: actions/download-artifact@v2
  350. with:
  351. name: mac-app
  352. - name: Untar app.tar
  353. run: tar -xvf app.tar
  354. - name: Prepare .dmg contents
  355. run: |
  356. mkdir dmg
  357. mv Cryptomator.app dmg
  358. cp dist/mac/dmg/resources/macFUSE.webloc dmg
  359. ls -l dmg
  360. - name: Install create-dmg
  361. run: |
  362. brew install create-dmg
  363. create-dmg --help
  364. - name: Create .dmg
  365. run: >
  366. create-dmg
  367. --volname Cryptomator
  368. --volicon "dist/mac/dmg/resources/Cryptomator-Volume.icns"
  369. --background "dist/mac/dmg/resources/Cryptomator-background.tiff"
  370. --window-pos 400 100
  371. --window-size 640 694
  372. --icon-size 128
  373. --icon "Cryptomator.app" 128 245
  374. --hide-extension "Cryptomator.app"
  375. --icon "macFUSE.webloc" 320 501
  376. --hide-extension "macFUSE.webloc"
  377. --app-drop-link 512 245
  378. --eula "dist/mac/dmg/resources/license.rtf"
  379. --icon ".background" 128 758
  380. --icon ".fseventsd" 320 758
  381. --icon ".VolumeIcon.icns" 512 758
  382. Cryptomator-${VERSION_NO}.dmg dmg
  383. env:
  384. VERSION_NO: ${{ needs.metadata.outputs.versionNum }}
  385. - name: Notarize .dmg
  386. env:
  387. NOTARIZATION_APPLE_ID: ${{ secrets.MACOS_NOTARIZATION_APPLE_ID }}
  388. NOTARIZATION_PW: ${{ secrets.MACOS_NOTARIZATION_PW }}
  389. NOTARIZATION_TEAM_ID: ${{ secrets.MACOS_NOTARIZATION_TEAM_ID }}
  390. run: >
  391. sudo xcode-select -s /Applications/Xcode_13.0.app
  392. xcrun notarytool submit Cryptomator-*.dmg --apple-id ${NOTARIZATION_APPLE_ID} --password ${NOTARIZATION_PW} --team-id ${NOTARIZATION_TEAM_ID} --wait
  393. xcrun stapler staple Cryptomator-*.dmg
  394. - name: Upload mac-dmg
  395. uses: actions/upload-artifact@v2
  396. with:
  397. name: mac-dmg
  398. path: Cryptomator-*.dmg
  399. if-no-files-found: error
  400. #
  401. # MSI package
  402. #
  403. win-msi:
  404. name: Build Cryptomator.msi
  405. runs-on: windows-latest
  406. needs: [appdir, metadata]
  407. steps:
  408. - uses: actions/checkout@v2
  409. - name: Download win-appdir
  410. uses: actions/download-artifact@v2
  411. with:
  412. name: win-appdir
  413. - name: Untar appdir.tar
  414. run: tar -xvf appdir.tar
  415. - uses: actions/setup-java@v1
  416. with:
  417. java-version: ${{ env.JAVA_VERSION }}
  418. - name: Patch Application Directory
  419. run: |
  420. cp dist/win/contrib/* appdir/Cryptomator
  421. - name: Fix permissions
  422. run: attrib -r appdir/Cryptomator/Cryptomator.exe
  423. shell: pwsh
  424. - name: Codesign
  425. uses: skymatic/code-sign-action@v1.1.0
  426. with:
  427. certificate: ${{ secrets.WIN_CODESIGN_P12_BASE64 }}
  428. password: ${{ secrets.WIN_CODESIGN_P12_PW }}
  429. certificatesha1: FF52240075AD7D14AF25629FDF69635357C7D14B
  430. description: Cryptomator
  431. timestampUrl: 'http://timestamp.digicert.com'
  432. folder: appdir/Cryptomator
  433. recursive: true
  434. - name: Create MSI
  435. run: >
  436. ${JAVA_HOME}/bin/jpackage
  437. --verbose
  438. --type msi
  439. --win-upgrade-uuid bda45523-42b1-4cae-9354-a45475ed4775
  440. --app-image appdir/Cryptomator
  441. --dest installer
  442. --name Cryptomator
  443. --vendor "Skymatic GmbH"
  444. --copyright "(C) 2016 - 2021 Skymatic GmbH"
  445. --app-version "${{ needs.metadata.outputs.versionNum }}"
  446. --win-menu
  447. --win-dir-chooser
  448. --resource-dir dist/win/resources
  449. --license-file dist/win/resources/license.rtf
  450. env:
  451. JP_WIXWIZARD_RESOURCES: ${{ github.workspace }}/dist/win/resources # requires abs path, used in resources/main.wxs
  452. - name: Codesign MSI
  453. uses: skymatic/code-sign-action@v1.1.0
  454. with:
  455. certificate: ${{ secrets.WIN_CODESIGN_P12_BASE64 }}
  456. password: ${{ secrets.WIN_CODESIGN_P12_PW }}
  457. certificatesha1: FF52240075AD7D14AF25629FDF69635357C7D14B
  458. description: Cryptomator Installer
  459. timestampUrl: 'http://timestamp.digicert.com'
  460. folder: installer
  461. - name: Upload win-msi
  462. uses: actions/upload-artifact@v2
  463. with:
  464. name: win-msi
  465. path: installer/*.msi
  466. if-no-files-found: error
  467. # release:
  468. # name: Draft a Release on GitHub Releases
  469. # runs-on: ubuntu-latest
  470. # needs: test
  471. # if: startsWith(github.ref, 'refs/tags/') && github.repository == 'cryptomator/cryptomator'
  472. # steps:
  473. # - uses: actions/checkout@v2
  474. # - name: Download buildkit-linux.zip
  475. # uses: actions/download-artifact@v1
  476. # with:
  477. # name: buildkit-linux.zip
  478. # path: .
  479. # - name: Download buildkit-mac.zip
  480. # uses: actions/download-artifact@v1
  481. # with:
  482. # name: buildkit-mac.zip
  483. # path: .
  484. # - name: Download buildkit-win.zip
  485. # uses: actions/download-artifact@v1
  486. # with:
  487. # name: buildkit-win.zip
  488. # path: .
  489. # - name: Create tarball
  490. # run: git archive --prefix="cryptomator-${{ github.ref }}/" -o "cryptomator-${{ github.ref }}.tar.gz" ${{ github.ref }}
  491. # - name: Sign tarball with key 615D449FE6E6A235
  492. # run: |
  493. # echo "${GPG_PRIVATE_KEY}" | gpg --batch --quiet --import
  494. # echo "${GPG_PASSPHRASE}" | gpg --batch --quiet --passphrase-fd 0 --pinentry-mode loopback -u 615D449FE6E6A235 --detach-sign -a "cryptomator-${{ github.ref }}.tar.gz"
  495. # env:
  496. # GPG_PRIVATE_KEY: ${{ secrets.RELEASES_GPG_PRIVATE_KEY }}
  497. # GPG_PASSPHRASE: ${{ secrets.RELEASES_GPG_PASSPHRASE }}
  498. # - name: Create Release
  499. # id: create_release
  500. # uses: actions/create-release@v1
  501. # env:
  502. # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  503. # with:
  504. # tag_name: ${{ github.ref }}
  505. # release_name: ${{ github.ref }}
  506. # body: |
  507. # :construction: Work in Progress
  508. # TODO:
  509. # * [ ] add Linux appimage, zsync file and signature file
  510. # * [ ] add Windows installer and signature file
  511. # * [ ] add MacOs disk image and signature file
  512. # ## What's new
  513. # ## Bugfixes
  514. # ## Misc
  515. # ---
  516. # :scroll: A complete list of closed issues is available [here](LINK)
  517. # draft: true
  518. # prerelease: false
  519. # - name: Upload buildkit-linux.zip to GitHub Releases
  520. # uses: actions/upload-release-asset@v1.0.1
  521. # env:
  522. # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  523. # with:
  524. # upload_url: ${{ steps.create_release.outputs.upload_url }}
  525. # asset_path: buildkit-linux.zip
  526. # asset_name: buildkit-linux.zip
  527. # asset_content_type: application/zip
  528. # - name: Upload buildkit-mac.zip to GitHub Releases
  529. # uses: actions/upload-release-asset@v1.0.1
  530. # env:
  531. # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  532. # with:
  533. # upload_url: ${{ steps.create_release.outputs.upload_url }}
  534. # asset_path: buildkit-mac.zip
  535. # asset_name: buildkit-mac.zip
  536. # asset_content_type: application/zip
  537. # - name: Upload buildkit-win.zip to GitHub Releases
  538. # uses: actions/upload-release-asset@v1.0.1
  539. # env:
  540. # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  541. # with:
  542. # upload_url: ${{ steps.create_release.outputs.upload_url }}
  543. # asset_path: buildkit-win.zip
  544. # asset_name: buildkit-win.zip
  545. # asset_content_type: application/zip
  546. # - name: Upload tarball signature to GitHub Releases
  547. # uses: actions/upload-release-asset@v1.0.1
  548. # env:
  549. # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  550. # with:
  551. # upload_url: ${{ steps.create_release.outputs.upload_url }}
  552. # asset_path: "cryptomator-${{ github.ref }}.tar.gz.asc"
  553. # asset_name: "cryptomator-${{ github.ref }}.tar.gz.asc"
  554. # asset_content_type: application/octet-stream