File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6767 with :
6868 files : target/site/jacoco/jacoco.xml
6969 fail_ci_if_error : false
70+
71+ # Release runs only on 'graphql-client-*' tags, after 'build' succeeds — mirrors the
72+ # CircleCI 'build-and-release' workflow so the project is built once, then deployed.
73+ release :
74+ name : release
75+ needs : build
76+ if : startsWith(github.ref, 'refs/tags/graphql-client-')
77+ runs-on : ubuntu-latest
78+ environment : maven-central
79+ permissions :
80+ contents : read
81+
82+ steps :
83+ - name : Checkout
84+ uses : actions/checkout@v5
85+
86+ - name : Set up JDK 8
87+ uses : actions/setup-java@v5
88+ with :
89+ distribution : temurin
90+ java-version : ' 8'
91+ cache : maven
92+
93+ - name : Import GPG key
94+ run : echo "$GPG_PRIVATE_KEY" | base64 --decode | gpg --batch --import
95+ env :
96+ GPG_PRIVATE_KEY : ${{ secrets.GPG_PRIVATE_KEY }}
97+
98+ - name : Deploy to Maven Central
99+ run : mvn -B -s .github/settings.xml clean deploy -P release-sign-artifacts
100+ env :
101+ GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
102+ MAVEN_CENTRAL_USERNAME : ${{ secrets.MAVEN_CENTRAL_USERNAME }}
103+ MAVEN_CENTRAL_PASSWORD : ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
104+
105+ - name : Remove GPG keyring
106+ if : always()
107+ run : rm -rf ~/.gnupg
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments