Local Repository Syncronization. Major Changes. Code Rebase. Etc. #37
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: ApiaryProxy Build | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: write-all | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: 17 | |
| distribution: 'temurin' | |
| - name: Build with Gradle | |
| run: ./gradlew build | |
| # Rename velocity-*.jar to apiary-*.jar | |
| - name: Rename JAR files | |
| run: | | |
| for file in */build/libs/velocity-*.jar; do | |
| mv "$file" "${file/velocity-/apiary-}" | |
| done | |
| - name: Automatic Releases | |
| uses: marvinpinto/action-automatic-releases@master | |
| with: | |
| title: "ApiaryProxy" | |
| automatic_release_tag: "latest" | |
| repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
| files: "*/build/libs/apiary-*.jar" | |
| prerelease: false |