Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/RainLoop/rainloop-webmail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRainLoop Team <support@rainloop.net>2021-01-16 22:51:36 +0300
committerRainLoop Team <support@rainloop.net>2021-01-16 22:51:36 +0300
commit8829ce75dbaf2a84fa9551926f74d8bb9f856e2b (patch)
tree2994f775468dfa4e76b15f1acaa0c5782a44dad0 /.github
parentb5bdbf754d6d309bfaa74687f4cd564752b058c1 (diff)
CI
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/builder.yml72
-rw-r--r--.github/workflows/test.yml2
2 files changed, 73 insertions, 1 deletions
diff --git a/.github/workflows/builder.yml b/.github/workflows/builder.yml
new file mode 100644
index 000000000..f13319683
--- /dev/null
+++ b/.github/workflows/builder.yml
@@ -0,0 +1,72 @@
+name: Builder
+
+on:
+ push:
+ tags:
+ - 'v*'
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ fetch-depth: 1
+
+ - uses: actions/setup-node@v1
+ with:
+ node-version: 12.x
+
+ - name: Create Cache
+ uses: actions/cache@v2
+ with:
+ path: '**/node_modules'
+ key: os-${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
+
+ - run: yarn install --frozen-lockfile --check-files
+ - run: yarn build
+ - run: yarn build-pro
+
+ - name: Move all assets to release folder
+ run: |
+ mkdir ./release
+ cp `ls ./build/dist/releases/**/**/*.zip | xargs` ./release
+
+ - name: Configure GPG Key
+ run: |
+ export GPG_TTY=$(tty)
+ mkdir -p ~/.gnupg/
+ chown -R $(whoami) ~/.gnupg/
+ echo "$GPG_SIGNING_KEY" > ~/.gnupg/private.key
+ find ~/.gnupg -type f -exec chmod 600 {} \;
+ find ~/.gnupg -type d -exec chmod 700 {} \;
+ echo "---"
+ gpg -v --batch --import ~/.gnupg/private.key
+ echo "---"
+ gpg --list-secret-keys --keyid-format LONG
+ echo "---"
+ ls ./release/*.zip
+ echo "---"
+ for ff in `ls ./release/*.zip`; do gpg --detach-sign --armor --openpgp --yes -u 87DA4591 --passphrase="$GPG_PASSPHRASE" $ff; done
+ env:
+ GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
+ GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
+
+ - name: Create Release
+ id: create_release
+ uses: actions/create-release@v1
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ tag_name: ${{ github.ref }}
+ release_name: ${{ github.ref }}
+ body: Release ${{ github.ref }}
+ draft: true
+ prerelease: true
+
+ - name: Upload Release Assets
+ uses: shogo82148/actions-upload-release-asset@v1
+ with:
+ upload_url: ${{ steps.create_release.outputs.upload_url }}
+ asset_path: ./release/*
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 6f643dd61..d8dd6d8e4 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -38,7 +38,7 @@ jobs:
echo "---"
ls ./release/*.*
echo "---"
- for ff in `ls ./release/*.*`; do gpg -v --detach-sign --armor --openpgp --yes -u 87DA4591 --passphrase="$GPG_PASSPHRASE" $ff; done
+ for ff in `ls ./release/*.*`; do gpg -v --detach-sign --batch --pinentry-mode loopback --armor --openpgp --yes -u 87DA4591 --passphrase="$GPG_PASSPHRASE" $ff; done
env:
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}