Bump and fix pehuki support #850
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: Build and Archive Jars | |
on: | |
push: | |
branches: | |
- origin | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Java | |
uses: actions/setup-java@v2 | |
with: | |
java-version: 21 | |
distribution: 'adopt' | |
- name: Build and Publish | |
run: | | |
chmod +x ./gradlew | |
./gradlew build | |
env: | |
GIT_TOKEN: ${{ secrets.GIT_TOKEN }} | |
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} | |
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | |
- name: Set Commit Hash | |
id: set_commit_hash | |
run: echo "COMMIT_HASH=$(git log --format='%H' -n 1)" >> $GITHUB_ENV | |
- name: Release | |
if: "!contains(github.event.head_commit.message, '--skip') && !contains(github.event.head_commit.commit.message, '--skip')" | |
uses: softprops/action-gh-release@v1 | |
with: | |
name: Latest v1.1.1 dev | |
tag_name: mc1.21/0-v1.1.1 | |
body: \"changes\"=${{ github.event.head_commit.message }} | |
token: ${{ secrets.GIT_TOKEN }} | |
files: build/libs/*.jar | |
- name: Notify Discord | |
if: ${{ (success() || failure()) }} | |
uses: Tim203/actions-git-discord-webhook@70f38ded3aca51635ec978ab4e1a58cd4cd0c2ff | |
with: | |
webhook_url: ${{ secrets.DISCORD_WEBHOOK }} | |
status: ${{ job.status }} |