write empty machikado if no key available

This commit is contained in:
5ec1cff
2024-01-02 19:51:29 +08:00
parent b041a4fca0
commit 977bd7753d
2 changed files with 13 additions and 1 deletions

View File

@@ -29,6 +29,14 @@ jobs:
submodules: "recursive"
fetch-depth: 0
- name: Write key
if: ${{ ( github.event_name != 'pull_request' && github.ref == 'refs/heads/master' ) || github.ref_type == 'tag' }}
run: |
if [ ! -z "${{ secrets.PRIVATE_KEY }}" ]; then
echo '${{ secrets.PUBLIC_KEY }}' | base64 --decode > module/public_key
echo '${{ secrets.PRIVATE_KEY }}' | base64 --decode > module/private_key
fi
- name: Setup Java
uses: actions/setup-java@v3
with: