This is an automated email from the ASF dual-hosted git repository.

thiagohp pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tapestry-5.git


The following commit(s) were added to refs/heads/master by this push:
     new 6d8913d8e TAP5-2785: creating snapshot and release recipes
6d8913d8e is described below

commit 6d8913d8ec752cf867b46a60ffc76072b99223c8
Author: Thiago H. de Paula Figueiredo <thi...@arsmachina.com.br>
AuthorDate: Sun Aug 18 18:27:39 2024 -0300

    TAP5-2785: creating snapshot and release recipes
    
    for the 2 branches
---
 justfile | 26 ++++++++++++++++++--------
 1 file changed, 18 insertions(+), 8 deletions(-)

diff --git a/justfile b/justfile
index b49bc4813..b91730243 100644
--- a/justfile
+++ b/justfile
@@ -16,17 +16,27 @@ local-snapshot-full:
 tapestry-core-maven-local-snapshot:
        ./gradlew tapestry-core:publishToMavenLocal {{gradle-options}} -Dci=true
 
+_deploy_branch branch extra-options:
+       echo "Releasing branch: {{branch}} with Gradle extra options 
'{{extra-options}}'"
+       # Fail if there are untracked files or uncommitted changes
+       #git diff --quiet && git diff --cached --quiet || echo "\nThere are 
untracked files or uncommitted changes!\n" && git status && false
+       #git checkout master
+       #./gradlew clean generateRelease {{gradle-options}} {{extra-options}}
+
+_deploy_javax extra-options: (_deploy_branch "javax" extra-options)
+_deploy_master extra-options: (_deploy_branch "master" extra-options)
+
 # Deploys a snapshot to the ASF snapshots repository
-snapshot:
-       git stash
-       ./gradlew clean generateRelease {{gradle-options}} -Dci=true
-       git stash pop
+snapshot: (_deploy_branch "master" "-Dci=true") (_deploy_branch "javax" 
"-Dci=true")
 
 # Deploys a release to the ASF staging repository
-release:
-       git stash
-       ./gradlew clean generateRelease {{gradle-options}}
-       git stash pop
+release version: (_deploy_branch "master" "") (_deploy_branch "javax" "")
+       #git checkout master
+       #git tag {{version}}
+       #git push --tags
+       #git checkout javax
+       #git tag {{version}}-javax
+       #git push --tags
 
 # Builds Tapestry without running tests
 build:

Reply via email to