Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moved settings.xml into CI workflow #484

Merged
merged 1 commit into from Aug 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 0 additions & 19 deletions .github/maven/settings.xml

This file was deleted.

25 changes: 24 additions & 1 deletion .github/workflows/maven-deploy.yml
Expand Up @@ -27,10 +27,33 @@ jobs:
with:
key-suffix: '-deploy'
additional-path: '!~/.m2/repository/com/github/gantsign/maven'
- name: Configure maven settings.xml
shell: bash
run: |
mkdir -p ~/.m2
cat << 'EOF' > ~/.m2/settings.xml
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
https://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>ossrh</id>
<username>${env.OSSRH_USER}</username>
<password>${env.OSSRH_TOKEN}</password>
</server>
<server>
<id>github</id>
<username>${env.GITHUB_ACTOR}</username>
<password>${env.GITHUB_TOKEN}</password>
</server>
</servers>
</settings>
EOF
- name: Deploy with Maven
run: |
./mvnw deploy \
--settings .github/maven/settings.xml \
-P publish-artifacts,sign-artifacts,ossrh-deploy \
-DskipTests \
-Dinvoker.skip=true \
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Expand Up @@ -63,7 +63,6 @@ jobs:
- name: Deploy Maven site
run: |
./mvnw scm-publish:publish-scm \
--settings .github/maven/settings.xml \
-P gh-pages \
-DskipTests \
-Dinvoker.skip=true \
Expand Down