From 32bd84d754027d44bc3364903148b877840baa89 Mon Sep 17 00:00:00 2001 From: Sebastian Stenzel Date: Fri, 13 Aug 2021 11:23:59 +0200 Subject: [PATCH] attempt to fix release --- .github/workflows/release.yml | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9476b21e0..2d5466329 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -482,20 +482,12 @@ jobs: release: name: Draft a release on Github runs-on: ubuntu-latest - needs: [linux-appimage,mac-dmg,win-msi] + needs: [metadata,linux-appimage,mac-dmg,win-msi] if: startsWith(github.ref, 'refs/tags/') && github.repository == 'cryptomator/cryptomator' steps: - uses: actions/checkout@v2 - name: Create tarball - run: git archive --prefix="cryptomator-${{ github.ref }}/" -o "cryptomator-${{ github.ref }}.tar.gz" ${{ github.ref }} - #Signature von finalen Artefakten - - name: Sign tarball with key 615D449FE6E6A235 - run: | - echo "${GPG_PRIVATE_KEY}" | gpg --batch --quiet --import - echo "${GPG_PASSPHRASE}" | gpg --batch --quiet --passphrase-fd 0 --pinentry-mode loopback -u 615D449FE6E6A235 --detach-sign -a "cryptomator-${{ github.ref }}.tar.gz" - env: - GPG_PRIVATE_KEY: ${{ secrets.RELEASES_GPG_PRIVATE_KEY }} - GPG_PASSPHRASE: ${{ secrets.RELEASES_GPG_PASSPHRASE }} + run: git archive --prefix="cryptomator-${{ needs.metadata.outputs.versionStr }}/" -o "cryptomator-${{ needs.metadata.outputs.versionStr }}.tar.gz" ${{ github.ref }} - name: Download linux appimage uses: actions/download-artifact@v2 with: @@ -508,14 +500,15 @@ jobs: uses: actions/download-artifact@v2 with: name: win-msi - - - name: Create Detached GPG Signature for all release files with key 615D449FE6E6A235 + - name: Create detached GPG signature for all release files with key 615D449FE6E6A235 run: | echo "${GPG_PRIVATE_KEY}" | gpg --batch --quiet --import - for extension in .appimage .dmg .msi .zsync; do - $FILE=$(ls | grep ${extension}) + for FILE in `find . -name "*.appimage" -o -name "*.dmg" -o -name "*.msi" -o -name "*.zsync" -o -name "*.tar.gz"`; do echo "${GPG_PASSPHRASE}" | gpg --batch --quiet --passphrase-fd 0 --pinentry-mode loopback -u 615D449FE6E6A235 --detach-sign -a ${FILE} done + env: + GPG_PRIVATE_KEY: ${{ secrets.RELEASES_GPG_PRIVATE_KEY }} + GPG_PASSPHRASE: ${{ secrets.RELEASES_GPG_PASSPHRASE }} - name: Create release draft uses: softprops/action-gh-release@v1 with: