This repository was archived by the owner on Oct 25, 2025. It is now read-only.
[GIT] #24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release JARs | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| - name: Set up Java 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '17' | |
| - name: Build with Maven | |
| run: mvn clean install -DskipTests | |
| - name: Collect all LOCAL.jar files | |
| run: | | |
| mkdir -p release-artifacts | |
| find . -type f -name "org.eclipse.jgit*LOCAL.jar" -exec cp {} release-artifacts/ \; | |
| - name: Create Git Tag | |
| run: | | |
| git config user.name "github-actions" | |
| git config user.email "[email protected]" | |
| git tag -f latest | |
| git push origin -f latest | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: latest | |
| files: release-artifacts/* | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |