This commit is contained in:
RainLoop Team 2021-01-16 22:44:23 +03:00
parent 7db1498bb9
commit b5bdbf754d

View file

@ -1,9 +1,9 @@
name: Builder
name: Test
on:
push:
tags:
- 'v*'
branches:
- master
jobs:
build:
@ -18,20 +18,10 @@ jobs:
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
cp ./package.json ./release
- name: Configure GPG Key
run: |
@ -44,29 +34,15 @@ jobs:
echo "---"
gpg -v --batch --import ~/.gnupg/private.key
echo "---"
gpg --list-secret-keys --keyid-format LONG
gpg -v --list-secret-keys --keyid-format LONG
echo "---"
ls ./release/*.zip
ls ./release/*.*
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:
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/*
- name: Test
run: |
ls ./release/*.*