No need #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: | |
| pull_request: | |
| push: | |
| branches: | |
| - "ver/**" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| if: "!contains(github.event.commits[0].message, '[ci skip]')" | |
| permissions: | |
| contents: write | |
| env: | |
| BUILD_NUMBER: ${{ github.run_number }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: 8 | |
| cache: 'gradle' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Build FAWE | |
| run: ./gradlew build | |
| - name: Prepare release notes and artifacts | |
| run: | | |
| chmod +x ./scripts/prepareRelease.sh | |
| ./scripts/prepareRelease.sh | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GITHUB_REPO: ${{ github.repository }} | |
| BUILD_NUMBER: ${{ env.BUILD_NUMBER }} | |
| - name: Upload FAWE | |
| uses: actions/upload-artifact@main | |
| with: | |
| name: FAWE Legacy | |
| path: ./bukkit/build/libs/FastAsyncWorldEdit-bukkit-1.0.0-legacy-6.1.7.2.jar | |
| - name: Release FAWE | |
| uses: softprops/action-gh-release@master | |
| with: | |
| name: "🪓 FAWE build ${{ env.BUILD_NUMBER }}" | |
| tag_name: "ver-1.0.0-legacy-6.1.7.2" | |
| files: | | |
| ./bukkit/build/libs/FastAsyncWorldEdit-bukkit-1.0.0-legacy-6.1.7.2.jar | |
| body_path: "./RELEASE.md" | |
| token: "${{ secrets.GITHUB_TOKEN }}" | |
| target_commitish: "${{ github.sha }}" | |
| draft: false | |
| prerelease: false |