mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Update CI
This commit is contained in:
parent
18497e0a3a
commit
cc6648bd9c
3 changed files with 16 additions and 12 deletions
20
.github/workflows/builder.yml
vendored
20
.github/workflows/builder.yml
vendored
|
|
@ -28,13 +28,17 @@ jobs:
|
||||||
- run: yarn build
|
- run: yarn build
|
||||||
- run: yarn build-pro
|
- run: yarn build-pro
|
||||||
|
|
||||||
# - name: Configure GPG Key
|
- name: Configure GPG Key
|
||||||
# run: |
|
run: |
|
||||||
# gpg --no-tty --batch --yes --import <(echo "$GPG_SIGNING_KEY")
|
cat <(echo -e "${{ secrets.GPG_SIGNING_KEY }}") | gpg --batch --import --no-tty --yes
|
||||||
# for ff in `ls ./build/dist/releases/**/**/*.zip | xargs`; do gpg --detach-sign --no-tty --yes --armor --openpgp -u 87DA4591 --passphrase $GPG_PASSPHRASE $ff; done
|
for ff in `ls ./build/dist/releases/**/**/*.zip | xargs`; do gpg --detach-sign --no-tty --yes --armor --openpgp -u 87DA4591 --passphrase $GPG_PASSPHRASE $ff; done
|
||||||
# env:
|
env:
|
||||||
# GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
|
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
|
||||||
# GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
|
|
||||||
|
- name: Move all assets to release folder
|
||||||
|
run: |
|
||||||
|
mkdir ./release
|
||||||
|
cp `ls ./build/dist/releases/**/**/*.zip | xargs` ./release
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
|
|
@ -51,4 +55,4 @@ jobs:
|
||||||
uses: shogo82148/actions-upload-release-asset@v1
|
uses: shogo82148/actions-upload-release-asset@v1
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
asset_path: ./build/dist/releases/*
|
asset_path: ./release/*
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ const config = {
|
||||||
cleanPath: '',
|
cleanPath: '',
|
||||||
zipSrcPath: '',
|
zipSrcPath: '',
|
||||||
zipFile: '',
|
zipFile: '',
|
||||||
zipFileShort: '',
|
// zipFileShort: '',
|
||||||
|
|
||||||
paths: {}
|
paths: {}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ const rainloopSetup = (done) => {
|
||||||
config.cleanPath = dist;
|
config.cleanPath = dist;
|
||||||
config.zipSrcPath = dist;
|
config.zipSrcPath = dist;
|
||||||
config.zipFile = 'rainloop-' + (config.community ? 'community-' : '') + versionFull + '.zip';
|
config.zipFile = 'rainloop-' + (config.community ? 'community-' : '') + versionFull + '.zip';
|
||||||
config.zipFileShort = 'rainloop-' + (config.community ? 'community-' : '') + 'latest.zip';
|
// config.zipFileShort = 'rainloop-' + (config.community ? 'community-' : '') + 'latest.zip';
|
||||||
|
|
||||||
config.rainloopBuilded = true;
|
config.rainloopBuilded = true;
|
||||||
|
|
||||||
|
|
@ -71,8 +71,8 @@ const rainloopClean = (done) => {
|
||||||
done();
|
done();
|
||||||
};
|
};
|
||||||
|
|
||||||
const rainloopShortName = (done) => copy(config.destPath + config.zipFile, config.destPath + config.zipFileShort, done);
|
// const rainloopShortName = (done) => copy(config.destPath + config.zipFile, config.destPath + config.zipFileShort, done);
|
||||||
|
|
||||||
exports.rainloopBuild = gulp.series(rainloopCopy, rainloopSetup);
|
exports.rainloopBuild = gulp.series(rainloopCopy, rainloopSetup);
|
||||||
|
|
||||||
exports.rainloop = gulp.series(exports.rainloopBuild, rainloopZip, rainloopClean, rainloopShortName);
|
exports.rainloop = gulp.series(exports.rainloopBuild, rainloopZip, rainloopClean /*, rainloopShortName*/);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue