Patch #5
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 Development | |
| on: | |
| push: | |
| branches: [master] | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup bun | |
| uses: oven-sh/setup-bun@v2 | |
| - name: Install bun dependencies | |
| run: cd web && bun install | |
| - name: Build frontend | |
| run: cd web && bun run build | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: 21 | |
| distribution: temurin | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Build | |
| run: ./gradlew build | |
| - name: Extract repository name | |
| run: echo "NAME=$(basename ${{ github.repository }})" >> $GITHUB_ENV | |
| - name: Upload Build | |
| uses: marvinpinto/action-automatic-releases@master | |
| with: | |
| title: "${{ env.NAME }}" | |
| automatic_release_tag: "latest" | |
| repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
| files: "build/libs/*.jar" | |
| prerelease: false |