Skip to content

Bump maven-gpg-plugin from 3.0.1 to 3.1.0 #212

Bump maven-gpg-plugin from 3.0.1 to 3.1.0

Bump maven-gpg-plugin from 3.0.1 to 3.1.0 #212

Workflow file for this run

name: Release
on:
pull_request:
types: [closed]
branches:
- master
jobs:
release:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v3
- name: Install Java and Maven
uses: actions/setup-java@v3
with:
java-version: 8
distribution: temurin
check-latest: false
- 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
- name: Setup Nexus authentication and GPG passphrase
uses: whelk-io/maven-settings-xml-action@v21
with:
profiles: '[
{
"id": "gpg",
"activation": { "activeByDefault": "true" },
"properties": { "gpg.executable": "gpg", "gpg.passphrase": "${{ secrets.GPG_PASSPHRASE }}"}
}]'
servers: '[
{
"id": "sonatype-nexus-staging",
"username": "${{ secrets.OSS_NEXUS_USERNAME }}",
"password": "${{ secrets.OSS_NEXUS_PASSWORD }}"
},
{
"id": "sonatype-nexus-snapshots",
"username": "${{ secrets.OSS_NEXUS_USERNAME }}",
"password": "${{ secrets.OSS_NEXUS_PASSWORD }}"
}]'
- name: Setup Github SSH key
uses: webfactory/ssh-agent@v0.8.0
with:
ssh-private-key: ${{ secrets.SSH_KEY }}
# webfactory/ssh-agent stopped doing this with v0.8.0
- name: Configure known_hosts
run: |
echo 'github.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl' >> ~/.ssh/known_hosts
echo 'github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg=' >> ~/.ssh/known_hosts
echo 'github.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCj7ndNxQowgcQnjshcLrqPEiiphnt+VTTvDP6mHBL9j1aNUkY4Ue1gvwnGLVlOhGeYrnZaMgRK6+PKCUXaDbC7qtbW8gIkhL7aGCsOr/C56SJMy/BCZfxd1nWzAOxSDPgVsmerOBYfNqltV9/hWCqBywINIR+5dIg6JTJ72pcEpEjcYgXkE2YEFXV1JHnsKgbLWNlhScqb2UmyRkQyytRLtL+38TGxkxCflmO+5Z8CSSNY7GidjMIZ7Q4zMjA2n1nGrlTDkzwDCsw+wqFPGQA179cnfGWOWRVruj16z6XyvxvjJwbz0wQZ75XK5tKSb7FNyeIEs4TT4jk+S4dhPeAUC5y+bDYirYgM4GC7uEnztnZyaVWQ7B381AK4Qdrwt51ZqExKbQpTUNn+EjqoTwvqNj4kqx5QUCI0ThS/YkOxJCXmPUWZbhjpCg56i+2aB6CmK2JGhn57K5mj0MNdBXA4/WnwH6XoPWJzK5Nyu2zB3nAZp+S5hpQs+p1vN1/wsjk=' >> ~/.ssh/known_hosts
# This step will run the tests, so we skip running them again on release:perform
- name: Prepare release
run: mvn -B release:prepare
- name: Perform release
run: mvn -B release:perform -DskipTests
- name: A step failed
if: ${{ failure() }}
run: mvn release:rollback