Skip to content

Commit

Permalink
chore: release
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloSanchi committed Dec 24, 2024
1 parent 8983393 commit 63ea9ea
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

name: Maven Release

on:
Expand All @@ -11,7 +12,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout repository with SSH
- name: Checkout repository
uses: actions/checkout@v3
with:
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
Expand All @@ -21,14 +22,19 @@ jobs:
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Debug SSH Key Permissions
- name: Persist SSH Configuration
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
echo "Host github.com" > ~/.ssh/config
echo " StrictHostKeyChecking no" >> ~/.ssh/config
ssh -T git@github.com
echo " IdentityFile ~/.ssh/id_ed25519" >> ~/.ssh/config
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
- name: Test SSH Connection
run: ssh -T git@github.com

- name: Set up JDK
uses: actions/setup-java@v3
Expand All @@ -44,7 +50,10 @@ jobs:
restore-keys: |
${{ runner.os }}-maven
- name: Set Correct Remote URL
run: git remote set-url origin git@github.com:PabloSanchi/jchunk.git

- name: Run Maven Release
run: |
mvn release:prepare -B
mvn release:perform -B
mvn release:prepare -B -e -X
mvn release:perform -B -e -X

0 comments on commit 63ea9ea

Please sign in to comment.