assume you are on a mega if you are teleported far into the codespace #274
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: Build | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| id-token: "write" | |
| contents: "write" | |
| packages: "write" | |
| pull-requests: "read" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: 21 | |
| distribution: "temurin" | |
| - name: Build with Gradle | |
| run: ./gradlew build '-Pversion=${{ github.run_number }}' | |
| - name: Upload Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: CodeClient | |
| path: ./build/libs/CodeClient*.jar | |
| - name: Publish Release | |
| uses: marvinpinto/action-automatic-releases@latest | |
| with: | |
| repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
| automatic_release_tag: "v${{ github.run_number }}" | |
| files: | | |
| ./build/libs/ |