INNER CODE UNIT · Java

nextVersion

graphql-java-kickstart/graphql-java-servlet · .github/tag-release.sh:29

      nextVersion=$((BASH_REMATCH[2] + 1))
      nextVersion="${BASH_REMATCH[1]}.${nextVersion}-SNAPSHOT"
    fi

    echo "Next version: ${nextVersion}"
    sed -i -E "s/^version(\s)?=.*/version=${nextVersion}/" gradle.properties
    git commit -a -m "Bumped version for next release"
  else
    echo "No semantic version and therefore cannot publish to maven repository: '${APP_VERSION}'"
  fi
}

git config --global user.email "actions@github.com"
git config --global user.name "GitHub Actions"

echo "Deploying release to Maven Central"
removeSnapshots
commitRelease

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…