Skip to content

chore(deps): update gradle/actions digest to d9c87d4 #320

chore(deps): update gradle/actions digest to d9c87d4

chore(deps): update gradle/actions digest to d9c87d4 #320

Workflow file for this run

#
# CI build that assembles artifacts and runs tests.
# If validation is successful this workflow releases from the main dev branch.
#
# - skipping CI: add [skip ci] to the commit message
# - skipping release: add [skip release] to the commit message
#
name: CI
on:
push:
branches: ["main"]
tags-ignore: [v*] # release tags are autogenerated after a successful CI, no need to run CI against them
pull_request:
branches: ["**"]
jobs:
gradle_wrapper_validation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 # docs: https://github.com/actions/checkout
with:
fetch-depth: '0' # https://github.com/shipkit/shipkit-auto-version#fetch-depth-on-ci
- name: Gradle wrapper validation
uses: gradle/wrapper-validation-action@56b90f209b02bf6d1deae490e9ef18b21a389cd4 # v1.1.0
build:
runs-on: ubuntu-latest
needs: [ gradle_wrapper_validation ]
permissions:
contents: write
issues: write
pull-requests: write
steps:
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 # https://github.com/actions/checkout
with:
fetch-depth: '0' # https://github.com/shipkit/shipkit-changelog#fetch-depth-on-ci
- name: Setup Java
uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4
with:
distribution: adopt
java-version: 21
- name: Setup Gradle
uses: gradle/actions/setup-gradle@d9c87d481d55275bb5441eef3fe0e46805f9ef70 # v3
- name: Perform Build via Gradle
run: ./gradlew build --scan
- name: Publish to Maven Local via Gradle
run: ./gradlew publishToMavenLocal --scan
- name: Upload CodeCov Report
uses: codecov/codecov-action@ab904c41d6ece82784817410c45d8b8c02684457 # v3
with:
files: "**/build/reports/jacoco/**/*.xml"
- name: Publish to Maven Central via Gradle
# Release job, only for pushes to the main development branch
if: github.event_name == 'push'
&& github.ref == 'refs/heads/main'
&& github.repository == 'MythicDrops/kindling'
&& !contains(toJSON(github.event.commits.*.message), '[skip release]')
run: ./gradlew githubRelease publishToSonatype closeAndReleaseStagingRepositories --scan
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
SONATYPE_USER: ${{secrets.OSSRH_USERNAME}}
SONATYPE_PWD: ${{secrets.OSSRH_TOKEN}}
PGP_KEY: ${{secrets.GPG_PRIVATE_KEY}}
PGP_PWD: ${{secrets.GPG_PASSWORD}}