Remove Autohost (unused) #153
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: [dev] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.gradle/loom-cache | |
| ~/.gradle/caches | |
| ~/.gradle/wrapper | |
| key: gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
| restore-keys: | | |
| gradle- | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v1 | |
| with: | |
| java-version: 21 | |
| - name: Read mod version from Gradle | |
| id: read_version | |
| uses: christian-draeger/read-properties@1.0.1 | |
| with: | |
| path: './gradle.properties' | |
| property: 'mod_version' | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Generate data files | |
| run: ./gradlew runDatagen | |
| - name: Build and publish with Gradle | |
| run: ./gradlew build publish | |
| env: | |
| MAVEN_URL: ${{ secrets.MAVEN_SNAPSHOTS_URL }} | |
| MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} | |
| MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} | |
| GITHUB_ACTIONS: true | |
| SNAPSHOT: true | |
| MINOR_VERSION: ${{ steps.read_version.outputs.value }} | |
| BUILD_NUMBER: ${{ steps.read_version.outputs.value }} | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifacts | |
| path: build/libs |