build.yml 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560
  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-latest
  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: Upload mac-dmg
  386. uses: actions/upload-artifact@v2
  387. with:
  388. name: mac-dmg
  389. path: Cryptomator-*.dmg
  390. if-no-files-found: error
  391. #
  392. # MSI package
  393. #
  394. win-msi:
  395. name: Build Cryptomator.msi
  396. runs-on: windows-latest
  397. needs: [appdir, metadata]
  398. steps:
  399. - uses: actions/checkout@v2
  400. - name: Download win-appdir
  401. uses: actions/download-artifact@v2
  402. with:
  403. name: win-appdir
  404. - name: Untar appdir.tar
  405. run: tar -xvf appdir.tar
  406. - uses: actions/setup-java@v1
  407. with:
  408. java-version: ${{ env.JAVA_VERSION }}
  409. - name: Patch Application Directory
  410. run: |
  411. cp dist/win/contrib/* appdir/Cryptomator
  412. - name: Codesign
  413. uses: skymatic/code-sign-action@v1
  414. with:
  415. certificate: ${{ secrets.WIN_CODESIGN_P12_BASE64 }}
  416. password: ${{ secrets.WIN_CODESIGN_P12_PW }}
  417. certificatesha1: FF52240075AD7D14AF25629FDF69635357C7D14B
  418. timestampUrl: 'http://timestamp.digicert.com'
  419. folder: appdir/Cryptomator
  420. recursive: true
  421. - name: Create MSI
  422. run: >
  423. ${JAVA_HOME}/bin/jpackage
  424. --verbose
  425. --type msi
  426. --win-upgrade-uuid bda45523-42b1-4cae-9354-a45475ed4775
  427. --app-image appdir/Cryptomator
  428. --dest installer
  429. --name Cryptomator
  430. --vendor "Skymatic GmbH"
  431. --copyright "(C) 2016 - 2021 Skymatic GmbH"
  432. --app-version "${{ needs.metadata.outputs.versionNum }}"
  433. - name: Codesign MSI
  434. uses: skymatic/code-sign-action@v1
  435. with:
  436. certificate: ${{ secrets.WIN_CODESIGN_P12_BASE64 }}
  437. password: ${{ secrets.WIN_CODESIGN_P12_PW }}
  438. certificatesha1: FF52240075AD7D14AF25629FDF69635357C7D14B
  439. timestampUrl: 'http://timestamp.digicert.com'
  440. folder: installer
  441. - name: Upload win-msi
  442. uses: actions/upload-artifact@v2
  443. with:
  444. name: win-msi
  445. path: installer/*.msi
  446. if-no-files-found: error
  447. # release:
  448. # name: Draft a Release on GitHub Releases
  449. # runs-on: ubuntu-latest
  450. # needs: test
  451. # if: startsWith(github.ref, 'refs/tags/') && github.repository == 'cryptomator/cryptomator'
  452. # steps:
  453. # - uses: actions/checkout@v2
  454. # - name: Download buildkit-linux.zip
  455. # uses: actions/download-artifact@v1
  456. # with:
  457. # name: buildkit-linux.zip
  458. # path: .
  459. # - name: Download buildkit-mac.zip
  460. # uses: actions/download-artifact@v1
  461. # with:
  462. # name: buildkit-mac.zip
  463. # path: .
  464. # - name: Download buildkit-win.zip
  465. # uses: actions/download-artifact@v1
  466. # with:
  467. # name: buildkit-win.zip
  468. # path: .
  469. # - name: Create tarball
  470. # run: git archive --prefix="cryptomator-${{ github.ref }}/" -o "cryptomator-${{ github.ref }}.tar.gz" ${{ github.ref }}
  471. # - name: Sign tarball with key 615D449FE6E6A235
  472. # run: |
  473. # echo "${GPG_PRIVATE_KEY}" | gpg --batch --quiet --import
  474. # echo "${GPG_PASSPHRASE}" | gpg --batch --quiet --passphrase-fd 0 --pinentry-mode loopback -u 615D449FE6E6A235 --detach-sign -a "cryptomator-${{ github.ref }}.tar.gz"
  475. # env:
  476. # GPG_PRIVATE_KEY: ${{ secrets.RELEASES_GPG_PRIVATE_KEY }}
  477. # GPG_PASSPHRASE: ${{ secrets.RELEASES_GPG_PASSPHRASE }}
  478. # - name: Create Release
  479. # id: create_release
  480. # uses: actions/create-release@v1
  481. # env:
  482. # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  483. # with:
  484. # tag_name: ${{ github.ref }}
  485. # release_name: ${{ github.ref }}
  486. # body: |
  487. # :construction: Work in Progress
  488. # TODO:
  489. # * [ ] add Linux appimage, zsync file and signature file
  490. # * [ ] add Windows installer and signature file
  491. # * [ ] add MacOs disk image and signature file
  492. # ## What's new
  493. # ## Bugfixes
  494. # ## Misc
  495. # ---
  496. # :scroll: A complete list of closed issues is available [here](LINK)
  497. # draft: true
  498. # prerelease: false
  499. # - name: Upload buildkit-linux.zip to GitHub Releases
  500. # uses: actions/upload-release-asset@v1.0.1
  501. # env:
  502. # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  503. # with:
  504. # upload_url: ${{ steps.create_release.outputs.upload_url }}
  505. # asset_path: buildkit-linux.zip
  506. # asset_name: buildkit-linux.zip
  507. # asset_content_type: application/zip
  508. # - name: Upload buildkit-mac.zip to GitHub Releases
  509. # uses: actions/upload-release-asset@v1.0.1
  510. # env:
  511. # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  512. # with:
  513. # upload_url: ${{ steps.create_release.outputs.upload_url }}
  514. # asset_path: buildkit-mac.zip
  515. # asset_name: buildkit-mac.zip
  516. # asset_content_type: application/zip
  517. # - name: Upload buildkit-win.zip to GitHub Releases
  518. # uses: actions/upload-release-asset@v1.0.1
  519. # env:
  520. # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  521. # with:
  522. # upload_url: ${{ steps.create_release.outputs.upload_url }}
  523. # asset_path: buildkit-win.zip
  524. # asset_name: buildkit-win.zip
  525. # asset_content_type: application/zip
  526. # - name: Upload tarball signature to GitHub Releases
  527. # uses: actions/upload-release-asset@v1.0.1
  528. # env:
  529. # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  530. # with:
  531. # upload_url: ${{ steps.create_release.outputs.upload_url }}
  532. # asset_path: "cryptomator-${{ github.ref }}.tar.gz.asc"
  533. # asset_name: "cryptomator-${{ github.ref }}.tar.gz.asc"
  534. # asset_content_type: application/octet-stream