only upload tags to app store

pull/289/head
Mikael Finstad 6 years ago
parent 3b3597337c
commit 0f0e5b9cf2

@ -6,6 +6,10 @@ jobs:
release:
runs-on: ${{ matrix.os }}
# TODO
# env:
# is_tag: ${{ startsWith(github.ref, 'refs/tags/v') }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
@ -57,7 +61,7 @@ jobs:
API_KEY_ISSUER_ID: ${{ secrets.api_key_issuer_id }}
- name: Upload to Mac App Store
if: startsWith(matrix.os, 'macos')
if: startsWith(matrix.os, 'macos') && startsWith(github.ref, 'refs/tags/v')
run: |
mkdir -p ~/.appstoreconnect/private_keys/
echo '${{ secrets.api_key }}' > ~/.appstoreconnect/private_keys/AuthKey_${{ secrets.api_key_id }}.p8

Loading…
Cancel
Save