Included a bundles system, fixed entity attributes of an entity not b… #1
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: | |
| workflow_dispatch: | |
| push: | |
| branches: ['*'] | |
| pull_request: | |
| branches: ['*'] | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| env: | |
| TYCOONS_REPO_USER: ${{ secrets.EVOKE_REPO_USERNAME }} | |
| TYCOONS_REPO_PASS: ${{ secrets.EVOKE_REPO_PASSWORD }} | |
| steps: | |
| - name: Clone project | |
| uses: actions/checkout@v4 | |
| - name: Install JDK 8 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '8' | |
| distribution: 'temurin' | |
| check-latest: true | |
| - name: Setup gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Run build & publish with Gradle Wrapper | |
| if: github.ref == 'refs/heads/master' | |
| run: chmod +x ./gradlew && ./gradlew publishAllPublicationsToMavenRepository | |
| - name: Run build with Gradle Wrapper | |
| if: github.ref != 'refs/heads/master' | |
| run: chmod +x ./gradlew && ./gradlew build | |
| - name: Create Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| name: '${{ github.ref_name }}: ${{ github.event.head_commit.message }} (${{ github.sha }})' | |
| prerelease: ${{ github.ref != 'refs/heads/master' }} | |
| tag_name: ${{ github.ref_name }}-${{ github.sha }} |