mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
CI
This commit is contained in:
parent
7db1498bb9
commit
b5bdbf754d
1 changed files with 10 additions and 34 deletions
44
.github/workflows/test.yml
vendored
44
.github/workflows/test.yml
vendored
|
|
@ -1,9 +1,9 @@
|
||||||
name: Builder
|
name: Test
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
branches:
|
||||||
- 'v*'
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
@ -18,20 +18,10 @@ jobs:
|
||||||
with:
|
with:
|
||||||
node-version: 12.x
|
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
|
- name: Move all assets to release folder
|
||||||
run: |
|
run: |
|
||||||
mkdir ./release
|
mkdir ./release
|
||||||
cp `ls ./build/dist/releases/**/**/*.zip | xargs` ./release
|
cp ./package.json ./release
|
||||||
|
|
||||||
- name: Configure GPG Key
|
- name: Configure GPG Key
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -44,29 +34,15 @@ jobs:
|
||||||
echo "---"
|
echo "---"
|
||||||
gpg -v --batch --import ~/.gnupg/private.key
|
gpg -v --batch --import ~/.gnupg/private.key
|
||||||
echo "---"
|
echo "---"
|
||||||
gpg --list-secret-keys --keyid-format LONG
|
gpg -v --list-secret-keys --keyid-format LONG
|
||||||
echo "---"
|
echo "---"
|
||||||
ls ./release/*.zip
|
ls ./release/*.*
|
||||||
echo "---"
|
echo "---"
|
||||||
for ff in `ls ./release/*.zip`; do gpg --detach-sign --armor --openpgp --yes -u 87DA4591 --passphrase="$GPG_PASSPHRASE" $ff; done
|
for ff in `ls ./release/*.*`; do gpg -v --detach-sign --armor --openpgp --yes -u 87DA4591 --passphrase="$GPG_PASSPHRASE" $ff; done
|
||||||
env:
|
env:
|
||||||
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
|
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
|
||||||
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
|
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
|
||||||
|
|
||||||
- name: Create Release
|
- name: Test
|
||||||
id: create_release
|
run: |
|
||||||
uses: actions/create-release@v1
|
ls ./release/*.*
|
||||||
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/*
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue