Merge pull request #32 from AlyaClient/dev #91
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: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: write # Required for creating releases | |
| packages: write # If you publish packages (optional) | |
| jobs: | |
| build: | |
| runs-on: blacksmith-4vcpu-ubuntu-2404 | |
| steps: | |
| - name: checkout repository | |
| uses: actions/checkout@v4 | |
| - name: validate gradle wrapper | |
| uses: gradle/actions/wrapper-validation@v4 | |
| - name: setup jdk | |
| uses: useblacksmith/setup-java@v5 | |
| with: | |
| java-version: '21' | |
| distribution: 'microsoft' | |
| - name: make gradle wrapper executable | |
| run: chmod +x ./gradlew | |
| - name: build | |
| run: ./gradlew build | |
| - name: capture build artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Artifacts | |
| path: build/libs/ | |
| - name: Create Development Release | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: dev-${{ github.run_number }} | |
| name: Rye Beta | |
| body: Rye Development (Beta) Build (dev-${{ github.run_number }}) | |
| files: build/libs/* | |
| prerelease: true | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |