Skip to content

Commit

Permalink
Use version number to activate release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
szeweq committed Oct 26, 2021
1 parent d1ebbb0 commit a7fce09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gradle-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build App using Gradle
on:
push:
tags:
- 'v*'
- '[0-9]*'

jobs:
publish:
Expand All @@ -27,7 +27,7 @@ jobs:
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
run: ./gradlew build -Pversion=${GITHUB_REF#refs/*/}
- name: Upload release asset
uses: softprops/action-gh-release@v1
env:
Expand Down

0 comments on commit a7fce09

Please sign in to comment.