Skip to content
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
4 changes: 2 additions & 2 deletions .github/workflows/bump-snapshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ jobs:
./mvnw versions:update-properties -DincludeProperties=rewrite.version,rewrite-polyglot.version -DallowSnapshots=true
git diff-index --quiet HEAD pom.xml || (git commit -m "Bump rewrite.version property" pom.xml && git push origin main)
env:
CODEGENOME_USERNAME: ${{ secrets.CGP_ARTIFACTS_MAVEN_USERNAME }}
CODEGENOME_TOKEN: ${{ secrets.CGP_ARTIFACTS_MAVEN_TOKEN }}
CODEGENOME_USERNAME: ${{ secrets.CODEGENOME_USERNAME }}
CODEGENOME_TOKEN: ${{ secrets.CODEGENOME_TOKEN }}
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ jobs:
env:
# Activates the codegenome profile in pom.xml; empty on pull requests from forks, which
# receive no secrets, leaving the profile inactive.
CODEGENOME_USERNAME: ${{ secrets.CGP_ARTIFACTS_MAVEN_USERNAME }}
CODEGENOME_TOKEN: ${{ secrets.CGP_ARTIFACTS_MAVEN_TOKEN }}
CODEGENOME_USERNAME: ${{ secrets.CODEGENOME_USERNAME }}
CODEGENOME_TOKEN: ${{ secrets.CODEGENOME_TOKEN }}
- name: publish-snapshots
if: github.event_name != 'pull_request'
run: ./mvnw --show-version --global-settings=$HOME/.m2/settings.xml --settings=${{ github.workspace }}/settings.xml --file=pom.xml --batch-mode -Dstyle.color=always --activate-profiles=sign-artifacts clean deploy -DskipTests
Expand All @@ -71,8 +71,8 @@ jobs:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_TOKEN }}
SONATYPE_SIGNING_PASSWORD: ${{ secrets.OSSRH_SIGNING_PASSWORD }}
CODEGENOME_USERNAME: ${{ secrets.CGP_ARTIFACTS_MAVEN_USERNAME }}
CODEGENOME_TOKEN: ${{ secrets.CGP_ARTIFACTS_MAVEN_TOKEN }}
CODEGENOME_USERNAME: ${{ secrets.CODEGENOME_USERNAME }}
CODEGENOME_TOKEN: ${{ secrets.CODEGENOME_TOKEN }}

# The same snapshots again, to the Code Genome Project; the AWS credentials below activate the
# codegenome-publish profile, which points distributionManagement at its bucket.
Expand All @@ -84,8 +84,8 @@ jobs:
AWS_SECRET_ACCESS_KEY: ${{ secrets.CGP_AWS_SECRET_ACCESS_KEY }}
AWS_REGION: us-west-2
SONATYPE_SIGNING_PASSWORD: ${{ secrets.OSSRH_SIGNING_PASSWORD }}
CODEGENOME_USERNAME: ${{ secrets.CGP_ARTIFACTS_MAVEN_USERNAME }}
CODEGENOME_TOKEN: ${{ secrets.CGP_ARTIFACTS_MAVEN_TOKEN }}
CODEGENOME_USERNAME: ${{ secrets.CODEGENOME_USERNAME }}
CODEGENOME_TOKEN: ${{ secrets.CODEGENOME_TOKEN }}

- name: slack-notification
if: failure() && github.event_name == 'schedule' && (github.repository_owner == 'openrewrite' || github.repository_owner == 'moderneinc')
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ jobs:
./mvnw versions:update-properties -DincludeProperties=rewrite.version,rewrite-polyglot.version -DallowDowngrade=true
git diff-index --quiet HEAD pom.xml || git commit -m "Bump rewrite.version property" pom.xml && rm -f pom.xml.versionsBackup
env:
CODEGENOME_USERNAME: ${{ secrets.CGP_ARTIFACTS_MAVEN_USERNAME }}
CODEGENOME_TOKEN: ${{ secrets.CGP_ARTIFACTS_MAVEN_TOKEN }}
CODEGENOME_USERNAME: ${{ secrets.CODEGENOME_USERNAME }}
CODEGENOME_TOKEN: ${{ secrets.CODEGENOME_TOKEN }}

- name: publish-release
id: publish-release
Expand All @@ -62,8 +62,8 @@ jobs:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_TOKEN }}
SONATYPE_SIGNING_PASSWORD: ${{ secrets.OSSRH_SIGNING_PASSWORD }}
CODEGENOME_USERNAME: ${{ secrets.CGP_ARTIFACTS_MAVEN_USERNAME }}
CODEGENOME_TOKEN: ${{ secrets.CGP_ARTIFACTS_MAVEN_TOKEN }}
CODEGENOME_USERNAME: ${{ secrets.CODEGENOME_USERNAME }}
CODEGENOME_TOKEN: ${{ secrets.CODEGENOME_TOKEN }}

- name: github-release
if: ${{ success() }}
Expand All @@ -89,8 +89,8 @@ jobs:
./mvnw versions:update-properties -DincludeProperties=rewrite.version,rewrite-polyglot.version -DallowSnapshots=true
git diff-index --quiet HEAD pom.xml || (git commit -m "Bump rewrite.version property" pom.xml && git push origin main && rm -f pom.xml.versionsBackup)
env:
CODEGENOME_USERNAME: ${{ secrets.CGP_ARTIFACTS_MAVEN_USERNAME }}
CODEGENOME_TOKEN: ${{ secrets.CGP_ARTIFACTS_MAVEN_TOKEN }}
CODEGENOME_USERNAME: ${{ secrets.CODEGENOME_USERNAME }}
CODEGENOME_TOKEN: ${{ secrets.CODEGENOME_TOKEN }}

# Deploy the artifacts release:perform left in target/checkout to the Code Genome Project too, as
# the AWS credentials below activate the codegenome-publish profile. Last, so a failure here costs
Expand All @@ -103,5 +103,5 @@ jobs:
AWS_SECRET_ACCESS_KEY: ${{ secrets.CGP_AWS_SECRET_ACCESS_KEY }}
AWS_REGION: us-west-2
SONATYPE_SIGNING_PASSWORD: ${{ secrets.OSSRH_SIGNING_PASSWORD }}
CODEGENOME_USERNAME: ${{ secrets.CGP_ARTIFACTS_MAVEN_USERNAME }}
CODEGENOME_TOKEN: ${{ secrets.CGP_ARTIFACTS_MAVEN_TOKEN }}
CODEGENOME_USERNAME: ${{ secrets.CODEGENOME_USERNAME }}
CODEGENOME_TOKEN: ${{ secrets.CODEGENOME_TOKEN }}
Loading