-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: additional fixes to zod schemas to pass through signing config a…
…nd publish via a script (#3234)
- Loading branch information
1 parent
c4b78da
commit 79fb0c8
Showing
13 changed files
with
122 additions
and
23 deletions.
There are no files selected for viewing
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
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
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
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
18 changes: 18 additions & 0 deletions
18
...rs/java/generator-utils/src/main/java/com/fern/java/output/GeneratedGradleProperties.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.fern.java.output; | ||
|
||
import java.io.IOException; | ||
import java.nio.file.Files; | ||
import java.nio.file.Path; | ||
|
||
public class GeneratedGradleProperties { | ||
private static final RawGeneratedFile GENERATED_FILE = RawGeneratedFile.builder() | ||
.filename("gradle.properties") | ||
.contents("") | ||
.build(); | ||
|
||
private GeneratedGradleProperties() {} | ||
|
||
public static RawGeneratedFile getGeneratedFile() { | ||
return GENERATED_FILE; | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...ators/java/generator-utils/src/main/java/com/fern/java/output/GeneratedPublishScript.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.fern.java.output; | ||
|
||
import java.io.IOException; | ||
import java.nio.file.Files; | ||
import java.nio.file.Path; | ||
|
||
public class GeneratedPublishScript { | ||
private static final RawGeneratedFile GENERATED_FILE = RawGeneratedFile.builder() | ||
.filename("prepare.sh") | ||
.contents("# Write key ring file\n" + | ||
"echo $MAVEN_SIGNATURE_SECRET_KEY > armored_key.asc\n" + | ||
"gpg -o publish_key.gpg --dearmor armored_key.asc\n\n" + | ||
"# Generate gradle.properties file\n" + | ||
"echo \"signing.keyId=$MAVEN_SIGNATURE_KID\" > gradle.properties\n" + | ||
"echo \"signing.secretKeyRingFile=publish_key.gpg\" >> gradle.properties\n" + | ||
"echo \"signing.password=$MAVEN_SIGNATURE_PASSWORD\" >> gradle.properties\n") | ||
.directoryPrefix(".publish") | ||
.build(); | ||
|
||
private GeneratedPublishScript() {} | ||
|
||
public static RawGeneratedFile getGeneratedFile() { | ||
return GENERATED_FILE; | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.8.6 | ||
0.8.7-rc0 |
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
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
7 changes: 4 additions & 3 deletions
7
seed/java-sdk/exhaustive/signed_publish/.github/workflows/ci.yml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Empty file.