Files
QieKan-3.0/.github/workflows/release.yml
T
2022-03-17 12:38:19 +08:00

141 lines
5.0 KiB
YAML

name: Release Build
on:
# push:
# branches:
# - master
# paths:
# - 'CHANGELOG.md'
workflow_dispatch:
jobs:
prepare:
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master'
outputs:
version: ${{ steps.set-ver.outputs.version }}
play: ${{ steps.check.outputs.play }}
sign: ${{ steps.check.outputs.sign }}
steps:
- id: set-ver
run: |
echo "::set-output name=version::$(date -d "8 hour" -u +3.%y.%m%d%H)"
- id: check
run: |
if [ ! -z "${{ secrets.RELEASE_KEY_STORE }}" ]; then
echo "::set-output name=sign::yes"
fi
if [ ! -z "${{ secrets.SERVICE_ACCOUNT_JSON }}" ]; then
echo "::set-output name=play::yes"