Skip to content

Commit f913a9c

Browse files
clean up
1 parent 42d903e commit f913a9c

2 files changed

Lines changed: 38 additions & 72 deletions

File tree

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,41 @@ jobs:
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

.github/workflows/release.yml

Lines changed: 0 additions & 72 deletions
This file was deleted.

0 commit comments

Comments
 (0)