fix: World generation in super flat worlds (#16) #18
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: Server builds | |
| on: | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Get version | |
| run: | | |
| echo "VERSION=${{ github.run_number }}" >> $GITHUB_ENV | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup java | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| - name: Give permissions to Gradle | |
| run: chmod +x ./gradlew | |
| - name: Build with Gradle | |
| run: ./gradlew jar | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Ethylene | |
| path: build/libs/Ethylene**.jar | |
| #- name: Create Release | |
| # if: ${{ format('refs/heads/{0}', github.event.repository.default_branch) == github.ref }} | |
| # run: | | |
| # jar_file=$(basename build/libs/Ethylene**.jar) | |
| # file_name_no_ext="${jar_file%.jar}" | |
| # formatted_name=$(echo "$file_name_no_ext" | sed 's/-/ /g') | |
| # | |
| # gh release create "${{ github.run_number }}" build/libs/Ethylene**.jar \ | |
| # --repo="$GITHUB_REPOSITORY" \ | |
| # --title="${formatted_name}" \ | |
| # --generate-notes | |
| # env: | |
| # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |