From bb328898fe0ceb2eccf0c26f08c061e29ddfaba3 Mon Sep 17 00:00:00 2001 From: RainLoop Team Date: Sat, 16 Jan 2021 22:54:10 +0300 Subject: [PATCH] CI --- .github/workflows/builder.yml | 14 +++------- .github/workflows/test.yml | 48 ----------------------------------- 2 files changed, 4 insertions(+), 58 deletions(-) delete mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/builder.yml b/.github/workflows/builder.yml index f13319683..4aa0570b9 100644 --- a/.github/workflows/builder.yml +++ b/.github/workflows/builder.yml @@ -41,14 +41,8 @@ jobs: 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 + gpg --batch --import ~/.gnupg/private.key + for ff in `ls ./release/*.zip`; do gpg --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 }} @@ -62,8 +56,8 @@ jobs: tag_name: ${{ github.ref }} release_name: ${{ github.ref }} body: Release ${{ github.ref }} - draft: true - prerelease: true + draft: false + prerelease: false - name: Upload Release Assets uses: shogo82148/actions-upload-release-asset@v1 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index d8dd6d8e4..000000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,48 +0,0 @@ -name: Test - -on: - push: - branches: - - master - -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: Move all assets to release folder - run: | - mkdir ./release - cp ./package.json ./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 -v --list-secret-keys --keyid-format LONG - echo "---" - ls ./release/*.* - echo "---" - 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 }} - - - name: Test - run: | - ls ./release/*.*