Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.
Open
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
49 changes: 18 additions & 31 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ jobs:
release:
runs-on: ubuntu-latest

env:
STAGING_PROFILE_ID: ${{ secrets.OSS_NEXUS_STAGING_PROFILE_ID }}
NEXUS_USER: ${{ secrets.OSS_NEXUS_USERNAME }}
NEXUS_PASS: ${{ secrets.OSS_NEXUS_PASSWORD }}

steps:
- name: Fail if not on valid branch
if: github.ref != 'refs/heads/master'
Expand All @@ -29,48 +24,35 @@ jobs:
- name: Check out repo
uses: actions/checkout@v4

- name: Setup GPG
env:
GPG_KEY: ${{ secrets.GPG_KEY }}
run: |
echo "$GPG_KEY" | base64 -d > private.key
gpg --import --batch --yes ./private.key
rm ./private.key
gpg -k

- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin
check-latest: false
server-id: ossrh
server-username: NEXUS_USER
server-password: NEXUS_PASS

- name: Set up Maven
uses: stCarolas/setup-maven@v5
with:
maven-version: 3.9.5
maven-version: 3.9.9

- name: Configure git
run: |
git config --global user.email "infrastructure+deploy@renttherunway.com"
git config --global user.name "rtr-deploy"

- name: Setup GPG
env:
GPG_KEY: ${{ secrets.GPG_KEY }}
run: |
echo "$GPG_KEY" | base64 -d > private.key
gpg --import --batch --yes ./private.key
rm ./private.key
gpg -k

- name: Setup Nexus authentication and GPG passphrase
uses: whelk-io/maven-settings-xml-action@v22
with:
profiles: '[
{
"id": "gpg",
"activation": { "activeByDefault": "true" },
"properties": { "gpg.executable": "gpg", "gpg.passphrase": "${{ secrets.GPG_PASSPHRASE }}"}
}]'
servers: '[
{
"id": "ossrh",
"username": "${{ env.NEXUS_USER }}",
"password": "${{ env.NEXUS_PASS }}"
}]'

- name: Setup Github SSH key
uses: webfactory/ssh-agent@v0.9.0
with:
Expand All @@ -96,6 +78,11 @@ jobs:
id: perform-release
continue-on-error: true
if: ${{ steps.prepare-release.outcome == 'success' }}
env:
STAGING_PROFILE_ID: ${{ secrets.OSS_NEXUS_STAGING_PROFILE_ID }}
NEXUS_USER: ${{ secrets.OSS_NEXUS_USERNAME }}
NEXUS_PASS: ${{ secrets.OSS_NEXUS_PASSWORD }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
run: mvn -B release:perform -Darguments='-DskipTests -DskipITs'

- name: Rollback on release failure
Expand Down
2 changes: 1 addition & 1 deletion alchemy-dependencies/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@

<mockito.version>5.15.2</mockito.version>

<testcontainers.version>1.20.4</testcontainers.version>
<testcontainers.version>1.20.6</testcontainers.version>
</properties>

<dependencyManagement>
Expand Down