spring-search-1.0.12 #9
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: SpringSearch Deploy | ||
on: | ||
pull_request: | ||
types: | ||
- closed | ||
branches: | ||
- master | ||
env: | ||
TAG_NAME: ${{ github.event.pull_request.title }} | ||
jobs: | ||
release-maven-central: | ||
Check failure on line 14 in .github/workflows/spring-search-deploy.yml GitHub Actions / SpringSearch DeployInvalid workflow file
|
||
if: contains(github.head_ref, 'bump/v') && github.event.pull_request.merged == true | ||
runs-on: ubuntu-latest | ||
needs: build-and-test | ||
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.merge_commit_sha }} | ||
fetch-depth: '0' | ||
- name: Import GPG signing key | ||
uses: crazy-max/ghaction-import-gpg@v5 | ||
with: | ||
gpg_private_key: ${{ secrets.MAVEN_SIGNING_KEY }} | ||
passphrase: ${{ secrets.MAVEN_SIGNING_KEY_PASSPHRASE }} | ||
- name: Install JDK | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
cache: 'maven' | ||
server-id: maven-central-release | ||
server-username: MVN_CENTRAL_USERNAME | ||
server-password: MVN_CENTRAL_PASSWORD | ||
- name: Release to Maven repo | ||
run: echo ${{ secrets.GPG_KEY_NAME }} | ||
env: | ||
MVN_CENTRAL_USERNAME: ${{ vars.MVN_CENTRAL_USERNAME }} | ||
MVN_CENTRAL_PASSWORD: ${{ secrets.MVN_CENTRAL_PASSWORD }} | ||
- name: Push tag | ||
uses: anothrNick/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
CUSTOM_TAG: ${{ env.TAG_NAME }} | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
tag_name: ${{ env.TAG_NAME }} | ||
generate_release_notes: true |