Skip to content

Commit

Permalink
Remove writing to Nexus (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-boone authored Aug 22, 2023
1 parent 55a0d89 commit 4ee1f0b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,12 @@ jobs:
<username>\${env.GITHUB_ACTOR}</username>
<password>\${env.GITHUB_TOKEN}</password>
</server>
<server>
<id>capra-releases</id>
<username>\${env.NEXUS_USERNAME}</username>
<password>\${env.NEXUS_PASSWORD}</password>
</server>
</servers>
</settings>
EOF
- name: conditional release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME_FOR_PUBLIC_LIBS }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD_FOR_PUBLIC_LIBS }}
run: |
export MAVEN_OPTS="-Duser.home=$HOME" # Home directory not automatically picked up for some reason
major_version="$(sed -n "s/^.*<major-version>\([0-9]\{1,\}\)<\/major-version>.*$/\1/p" pom.xml)"
Expand All @@ -82,8 +75,6 @@ jobs:
fi
fi
if [ "$release" = "true" ]; then
# Release to Nexus
mvn -B source:jar deploy scm:tag -Drevision="$tag" -Dtag="$tag"
# Release to GitHub Packages
mvn -B source:jar deploy -DaltReleaseDeploymentRepository="github::default::https://maven.pkg.github.com/capralifecycle/liflig-properties" -Drevision="$tag" -Dtag="$tag"
else
Expand Down
7 changes: 0 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@
<tag>HEAD</tag>
</scm>

<distributionManagement>
<repository>
<id>capra-releases</id>
<url>https://mvnrepo.capraconsulting.no/content/repositories/capra-releases</url>
</repository>
</distributionManagement>

<properties>
<!-- Increment major version for breaking changes -->
<major-version>2</major-version>
Expand Down

0 comments on commit 4ee1f0b

Please sign in to comment.