Skip to content

Commit

Permalink
include ssh key in checkout step
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanJCummings committed Dec 3, 2024
1 parent d3b1402 commit debb5f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
- uses: actions/checkout@v4
with:
ref: cicd-test
ssh-key: "${{ secrets.MSUSEL_CI_BOT_SSH_KEY }}"

# java/maven setup
- name: Set up JDK 11
Expand All @@ -64,15 +65,11 @@ jobs:
distribution: temurin
java-version: 11


- name: deploy to MSUSEL maven repository
run: |
# git config --global user.name "${{ github.actor }}"
# git config --global user.email "${{ github.actor }}@users.noreply.github.com"
git config --global user.name "SECL Developers"
# FIX ME!!! need to migrate to github packages so authentication can be
# performed at the org level.
git config --global user.email "[email protected]"
git config --global user.name "${{ secrets.CI_BOT_USERNAME }}
git config --global user.email "${{ secrets.CI_BOT_EMAIL }}"
git config --global init.defaultBranch master
mvn --batch-mode -f pom.xml clean deploy -Dmaven.test.skip=true
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@
<repository>
<id>msusel-maven-repo</id>
<name>msusel-maven-repo</name>
<url>git:releases://${{ secrets.GITHUB_TOKEN }}[email protected]:MSUSEL/msusel-maven-repo.git</url>
<url>git:releases://[email protected]:MSUSEL/msusel-maven-repo.git</url>
</repository>
</distributionManagement>

Expand Down

0 comments on commit debb5f9

Please sign in to comment.