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

add configuration to release using auto #43

Merged
merged 2 commits into from
Nov 4, 2022
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
5 changes: 3 additions & 2 deletions .autorc
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
[
"maven",
{
"mavenOptions": ["-DskipTests"],
"mavenReleaseGoals": ["release:prepare", "release:perform"],
"mavenCommand": "mvn",
"mavenOptions": ["-DinteractiveMode=false", "-DskipTests", "-P release"],
"mavenReleaseGoals": ["deploy"]
}
]
],
Expand Down
18 changes: 6 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,16 @@ jobs:
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
gpg-passphrase: ${{ secrets.MAVEN_GPG_PASSPHRASE }}

- name: Configure Git User
run: |
git config user.email "actions@github.com"
git config user.name "GitHub Actions"
# - name: Set projects Maven version to GitHub Action GUI set version
# run: mvn versions:set "-DnewVersion=${{ github.event.inputs.releaseversion }}"

- uses: auto-it/setup-auto@v1
- name: Release
run: auto shipit

# - name: Publish package
# run: mvn --batch-mode release:prepare release:perform -P release -DskipTests=true
# env:
# MAVEN_USERNAME: ${{ secrets.OSS_SONATYPE_USERNAME }}
# MAVEN_PASSWORD: ${{ secrets.OSS_SONATYPE_PASSWORD }}
# MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
- name: Publish package
run: auto shipit -v
env:
MAVEN_USERNAME: ${{ secrets.OSS_SONATYPE_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSS_SONATYPE_PASSWORD }}
2 changes: 1 addition & 1 deletion com.intuit.graphql.parent/com.intuit.graphql.web/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
</goals>
<configuration>
<sources>
<Source>src-gen</Source>
<source>src-gen</source>
</sources>
<resources>
<resource>
Expand Down
7 changes: 6 additions & 1 deletion com.intuit.graphql.parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,12 @@
</dependencyManagement>
<build>
<plugins>
<plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.7</version>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-packaging-plugin</artifactId>
<version>${tycho-version}</version>
Expand Down