Merge pull request #42 from GiganticMinecraft/renovate/com.github.jmo… #41
This file contains 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: CD | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- .github/workflows/*.yml | |
- "!.github/workflows/cd.yml" | |
- LICENSE | |
- README.md | |
- renovate.json | |
jobs: | |
bump-and-build: | |
name: Bump version and build jar | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Java & Gradle | |
uses: ./.github/actions/setup | |
- name: Bump version | |
uses: gradle/gradle-build-action@v3 | |
with: | |
arguments: releaseVersion | |
- name: Git as GitHub Actions Bot | |
uses: Lucky3028/[email protected] | |
- name: Push changes | |
run: git push --follow-tags | |
- name: Build | |
uses: gradle/gradle-build-action@v3 | |
with: | |
arguments: jar | |
- name: Upload jar | |
uses: actions/upload-artifact@v4 | |
with: | |
name: jar | |
path: ./build/libs/*.jar |