Templates #6
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: [main] | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Set up JDK 25 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: 25 | |
| distribution: temurin | |
| - name: Download Server | |
| run: wget -O HytaleServer.jar ${{ secrets.SERVER }} | |
| - name: Build | |
| run: mvn package | |
| - 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: "target/*.jar" | |
| prerelease: false |