Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix release/close as final release step #25

Merged
merged 2 commits into from
Mar 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,11 @@ jobs:
gpg --passphrase $GPG_PASSPHRASE --batch --import signing-key
export ORG_GRADLE_PROJECT_signingInMemoryKey=$(gpg --armor --passphrase $GPG_PASSPHRASE --pinentry-mode=loopback --export-secret-keys $GPG_KEY_NAME signing-key | grep -v '\-\-' | grep -v '^=.' | tr -d '\n')
shred signing-key
make release
make releasestart
- name: sha256
run: sha256sum ./protoc-gen-connect-kotlin/build/libs/protoc-gen-connect-kotlin.jar >> sha256.txt
run: |
make buildplugin
sha256sum ./protoc-gen-connect-kotlin/build/libs/protoc-gen-connect-kotlin.jar >> sha256.txt
- name: Publish GitHub artifacts
uses: softprops/action-gh-release@v1
with:
Expand All @@ -53,3 +55,5 @@ jobs:
files: |
./protoc-gen-connect-kotlin/build/libs/protoc-gen-connect-kotlin.jar
sha256.txt
- name: Close repository and release
run: make releasecomplete
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,18 @@ lint: ## Run lint.
lintfix: # Applies the lint changes.
./gradlew spotlessApply

.PHONY: release
release: ## Release artifacts to Sonatype Nexus.
./gradlew --info publish --stacktrace --no-daemon --no-parallel
.PHONY: releasecomplete
releasecomplete: ## Close release to publish artifacts to Sonatype Nexus.
./gradlew --info closeAndReleaseRepository

.PHONY: releaselocal
releaselocal: ## Release artifacts to local maven repository.
./gradlew --info publishToMavenLocal

.PHONY: releasestart
releasestart: ## Upload artifacts to Sonatype Nexus.
./gradlew --info publish --stacktrace --no-daemon --no-parallel

.PHONY: test
test: ## Run tests for the library.
./gradlew library:test