Skip to content

Commit

Permalink
only release on tags
Browse files Browse the repository at this point in the history
  • Loading branch information
jwoglom committed Jan 22, 2023
1 parent 0bccb20 commit c09c268
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Android CI
on:
push:
branches: [ "main", "dev" ]
tags:
- 'v*'
pull_request:
branches: [ "main", "dev" ]

Expand Down Expand Up @@ -75,7 +77,7 @@ jobs:
- name: release
uses: actions/create-release@v1
id: create_release
#if: github.ref == 'refs/heads/main'
if: startsWith(github.event.ref, 'refs/tags/v')
with:
draft: false
prerelease: true
Expand All @@ -86,7 +88,7 @@ jobs:

- name: Upload mobile asset
uses: actions/upload-release-asset@v1
#if: github.ref == 'refs/heads/main'
if: startsWith(github.event.ref, 'refs/tags/v')
env:
GITHUB_TOKEN: ${{ github.token }}
with:
Expand All @@ -97,7 +99,7 @@ jobs:

- name: Upload wear asset
uses: actions/upload-release-asset@v1
#if: github.ref == 'refs/heads/main'
if: startsWith(github.event.ref, 'refs/tags/v')
env:
GITHUB_TOKEN: ${{ github.token }}
with:
Expand Down

0 comments on commit c09c268

Please sign in to comment.