mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-17 10:11:27 +00:00
execute ppa _after_ all successufl installer builds
This commit is contained in:
129
.github/workflows/release.yml
vendored
129
.github/workflows/release.yml
vendored
@@ -200,69 +200,6 @@ jobs:
|
|||||||
path: appdir.tar
|
path: appdir.tar
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
#
|
|
||||||
# Linux PPA Source Package
|
|
||||||
#
|
|
||||||
ppa:
|
|
||||||
name: Upload source package to PPA
|
|
||||||
needs: [buildkit, metadata]
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: install build tools
|
|
||||||
run: |
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install debhelper devscripts dput
|
|
||||||
- name: Download linux-buildkit
|
|
||||||
uses: actions/download-artifact@v2
|
|
||||||
with:
|
|
||||||
name: linux-buildkit
|
|
||||||
path: pkgdir
|
|
||||||
- name: create orig.tar.gz
|
|
||||||
run: tar -cJf cryptomator_${{ needs.metadata.outputs.ppaVerStr }}.orig.tar.xz -C pkgdir .
|
|
||||||
- name: patch and rename pkgdir
|
|
||||||
run: |
|
|
||||||
cp -r dist/linux/debian/ pkgdir
|
|
||||||
cp -r dist/linux/resources/ pkgdir
|
|
||||||
export RFC2822_TIMESTAMP=`date --rfc-2822`
|
|
||||||
envsubst '${VERSION_STR} ${VERSION_NUM} ${REVISION_NUM}' < dist/linux/debian/rules > pkgdir/debian/rules
|
|
||||||
envsubst '${VERSION_STR}' < dist/linux/debian/org.cryptomator.Cryptomator.desktop > pkgdir/debian/org.cryptomator.Cryptomator.desktop
|
|
||||||
envsubst '${PPA_VERSION} ${RFC2822_TIMESTAMP}' < dist/linux/debian/changelog > pkgdir/debian/changelog
|
|
||||||
find . -name "*.jar" >> pkgdir/debian/source/include-binaries
|
|
||||||
mv pkgdir cryptomator_${{ needs.metadata.outputs.ppaVerStr }}
|
|
||||||
env:
|
|
||||||
VERSION_STR: ${{ needs.metadata.outputs.semVerStr }}
|
|
||||||
VERSION_NUM: ${{ needs.metadata.outputs.semVerNum }}
|
|
||||||
REVISION_NUM: ${{ needs.metadata.outputs.revNum }}
|
|
||||||
PPA_VERSION: ${{ needs.metadata.outputs.ppaVerStr }}-0ppa1
|
|
||||||
- name: import gpg 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 --dry-run --sign dist/linux/debian/rules
|
|
||||||
env:
|
|
||||||
GPG_PRIVATE_KEY: ${{ secrets.RELEASES_GPG_PRIVATE_KEY }}
|
|
||||||
GPG_PASSPHRASE: ${{ secrets.RELEASES_GPG_PASSPHRASE }}
|
|
||||||
- name: debuild
|
|
||||||
run: debuild -S -sa -d
|
|
||||||
env:
|
|
||||||
DEBSIGN_PROGRAM: gpg --batch --pinentry-mode loopback
|
|
||||||
DEBSIGN_KEYID: 615D449FE6E6A235
|
|
||||||
working-directory: cryptomator_${{ needs.metadata.outputs.ppaVerStr }}
|
|
||||||
- name: Upload artifacts
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: linux-deb-source-package
|
|
||||||
path: |
|
|
||||||
cryptomator_*.dsc
|
|
||||||
cryptomator_*.orig.tar.xz
|
|
||||||
cryptomator_*.debian.tar.xz
|
|
||||||
cryptomator_*_source.changes
|
|
||||||
cryptomator_*_source.buildinfo
|
|
||||||
- name: dput to beta repo
|
|
||||||
run: dput ppa:sebastian-stenzel/cryptomator-beta cryptomator_${PPA_VERSION}_source.changes
|
|
||||||
env:
|
|
||||||
PPA_VERSION: ${{ needs.metadata.outputs.ppaVerStr }}-0ppa1
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Linux Cryptomator.AppImage
|
# Linux Cryptomator.AppImage
|
||||||
#
|
#
|
||||||
@@ -556,13 +493,77 @@ jobs:
|
|||||||
path: installer/*.msi
|
path: installer/*.msi
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
|
#
|
||||||
|
# Linux PPA Source Package
|
||||||
|
#
|
||||||
|
ppa:
|
||||||
|
name: Upload source package to PPA
|
||||||
|
needs: [buildkit, metadata, win-msi, mac-dmg, linux-appimage]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: install build tools
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install debhelper devscripts dput
|
||||||
|
- name: Download linux-buildkit
|
||||||
|
uses: actions/download-artifact@v2
|
||||||
|
with:
|
||||||
|
name: linux-buildkit
|
||||||
|
path: pkgdir
|
||||||
|
- name: create orig.tar.gz
|
||||||
|
run: tar -cJf cryptomator_${{ needs.metadata.outputs.ppaVerStr }}.orig.tar.xz -C pkgdir .
|
||||||
|
- name: patch and rename pkgdir
|
||||||
|
run: |
|
||||||
|
cp -r dist/linux/debian/ pkgdir
|
||||||
|
cp -r dist/linux/resources/ pkgdir
|
||||||
|
export RFC2822_TIMESTAMP=`date --rfc-2822`
|
||||||
|
envsubst '${VERSION_STR} ${VERSION_NUM} ${REVISION_NUM}' < dist/linux/debian/rules > pkgdir/debian/rules
|
||||||
|
envsubst '${VERSION_STR}' < dist/linux/debian/org.cryptomator.Cryptomator.desktop > pkgdir/debian/org.cryptomator.Cryptomator.desktop
|
||||||
|
envsubst '${PPA_VERSION} ${RFC2822_TIMESTAMP}' < dist/linux/debian/changelog > pkgdir/debian/changelog
|
||||||
|
find . -name "*.jar" >> pkgdir/debian/source/include-binaries
|
||||||
|
mv pkgdir cryptomator_${{ needs.metadata.outputs.ppaVerStr }}
|
||||||
|
env:
|
||||||
|
VERSION_STR: ${{ needs.metadata.outputs.semVerStr }}
|
||||||
|
VERSION_NUM: ${{ needs.metadata.outputs.semVerNum }}
|
||||||
|
REVISION_NUM: ${{ needs.metadata.outputs.revNum }}
|
||||||
|
PPA_VERSION: ${{ needs.metadata.outputs.ppaVerStr }}-0ppa1
|
||||||
|
- name: import gpg 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 --dry-run --sign dist/linux/debian/rules
|
||||||
|
env:
|
||||||
|
GPG_PRIVATE_KEY: ${{ secrets.RELEASES_GPG_PRIVATE_KEY }}
|
||||||
|
GPG_PASSPHRASE: ${{ secrets.RELEASES_GPG_PASSPHRASE }}
|
||||||
|
- name: debuild
|
||||||
|
run: debuild -S -sa -d
|
||||||
|
env:
|
||||||
|
DEBSIGN_PROGRAM: gpg --batch --pinentry-mode loopback
|
||||||
|
DEBSIGN_KEYID: 615D449FE6E6A235
|
||||||
|
working-directory: cryptomator_${{ needs.metadata.outputs.ppaVerStr }}
|
||||||
|
- name: Upload artifacts
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: linux-deb-source-package
|
||||||
|
path: |
|
||||||
|
cryptomator_*.dsc
|
||||||
|
cryptomator_*.orig.tar.xz
|
||||||
|
cryptomator_*.debian.tar.xz
|
||||||
|
cryptomator_*_source.changes
|
||||||
|
cryptomator_*_source.buildinfo
|
||||||
|
- name: dput to beta repo
|
||||||
|
run: dput ppa:sebastian-stenzel/cryptomator-beta cryptomator_${PPA_VERSION}_source.changes
|
||||||
|
env:
|
||||||
|
PPA_VERSION: ${{ needs.metadata.outputs.ppaVerStr }}-0ppa1
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Release
|
# Release
|
||||||
#
|
#
|
||||||
release:
|
release:
|
||||||
name: Draft a release on Github
|
name: Draft a release on Github
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [metadata,linux-appimage,mac-dmg,win-msi]
|
needs: [metadata,linux-appimage,mac-dmg,win-msi,ppa]
|
||||||
if: startsWith(github.ref, 'refs/tags/') && github.repository == 'cryptomator/cryptomator'
|
if: startsWith(github.ref, 'refs/tags/') && github.repository == 'cryptomator/cryptomator'
|
||||||
env:
|
env:
|
||||||
APPIMAGE_SHA256_MSG: undefined
|
APPIMAGE_SHA256_MSG: undefined
|
||||||
|
|||||||
Reference in New Issue
Block a user