Fix transitive Kotlin dependencies #3
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: Release for 5.x | |
on: | |
push: | |
branches: [ '5.x' ] | |
workflow_dispatch: | |
jobs: | |
release: | |
name: Publish release JAR for Kotlin for Forge | |
runs-on: ubuntu-latest | |
if: "contains(github.event.head_commit.message, '[Maven]') || github.event_name == 'workflow_dispatch'" | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'microsoft' | |
java-version: '21' | |
- name: Checkout site branch | |
uses: actions/checkout@v4 | |
with: | |
branch: site | |
path: site | |
- name: Update repo | |
run: | | |
./gradlew publishAllPublicationsToMavenRepository | |
cd ./site | |
git config user.name "thedarkcolour" | |
git config user.email "[email protected]" | |
git add . | |
git diff --staged --quiet || (git commit -m "Update repo" && git push) |