Skip to content

Fix not present sync item #25

Fix not present sync item

Fix not present sync item #25

Workflow file for this run

# GitHub Actions workflow to publish releases.
# Releases are published from the 'main' branch.
name: "Gradle"
on:
push:
branches: [ master ]
permissions:
contents: read
concurrency: "gradle-release-${{ github.ref }}"
jobs:
release:
name: "Release"
runs-on: "ubuntu-latest"
environment:
name: "release"
steps:
- name: "Checkout repository"
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 0
submodules: true
- name: "Validate Gradle wrapper"
uses: gradle/actions/wrapper-validation@d9c87d481d55275bb5441eef3fe0e46805f9ef70 # v3.5.0
- name: "Setup JDK 17"
uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018 # v4.2.2
with:
java-version: "17"
distribution: "temurin"
- name: "Setup Gradle"
uses: gradle/actions/setup-gradle@d9c87d481d55275bb5441eef3fe0e46805f9ef70 # v3.5.0
with:
gradle-version: "wrapper"
cache-write-only: true
- name: "Prepare for publish"
env:
VERSION: "${{ steps.version.outputs.version }}"
run: |
# Configure Git
git config --global user.email "[email protected]"
git config --global user.name "polocloud-bot"
# Indra only publishes release versions if HEAD is tagged
git tag -a "v$VERSION" HEAD -m "v$VERSION"
# Add permission
chmod +x ./gradlew
- name: "Publish artifacts"
run: ./gradlew publish
env:
ORG_GRADLE_PROJECT_sonatypeUsername: "${{ secrets.SONATYPE_USERNAME }}"
ORG_GRADLE_PROJECT_sonatypePassword: "${{ secrets.SONATYPE_PASSWORD }}"
- name: "Release to Maven Central"
run: ./gradlew findSonatypeStagingRepository closeAndReleaseSonatypeStagingRepository
env:
ORG_GRADLE_PROJECT_sonatypeUsername: "${{ secrets.SONATYPE_USERNAME }}"
ORG_GRADLE_PROJECT_sonatypePassword: "${{ secrets.SONATYPE_PASSWORD }}"
- name: "Create GitHub release"
uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191 # v2
with:
name: "PoloCloud v${{ steps.version.outputs.version }}"
tag_name: "v${{ steps.version.outputs.version }}"
target_commitish: "${{ github.ref_name }}"
generate_release_notes: true
token: "${{ secrets.GITHUB_TOKEN }}"