Skip to content

Commit

Permalink
read version dinamically
Browse files Browse the repository at this point in the history
  • Loading branch information
msx80 authored Sep 4, 2024
1 parent aa1982b commit 63a7f37
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,14 @@ jobs:
run: |
cd doorsofdoom
mvn --batch-mode clean install package
- name: Read version
run: |
cd doorsofdoom
echo "GITHUB_DDVER=$(mvn -q org.apache.maven.plugins:maven-help-plugin:3.1.1:evaluate -Dexpression=project.version -DforceStdout)" >> $GITHUB_ENV
- name: Build android
run: |
cd android-mvn
mvn --batch-mode -Dcartridge.artifactId=doorsofdoom -Dcartridge.groupId=com.github.msx80.omicron -Dcartridge.version=0.0.5 clean install android:apk
mvn --batch-mode -Dcartridge.artifactId=doorsofdoom -Dcartridge.groupId=com.github.msx80.omicron -Dcartridge.version=$GITHUB_DDVER clean install android:apk
- name: Deploy Apk
uses: actions/upload-artifact@v2
with:
Expand Down

0 comments on commit 63a7f37

Please sign in to comment.