Skip to content

Commit

Permalink
Update test-maven-settings.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tehdiplomat authored Nov 27, 2023
1 parent 74cc6a8 commit 8bdd910
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions .github/workflows/test-maven-settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,11 @@ jobs:
server-password: ${{ secrets.FTP_PASSWORD }}
settings-path: ${{ github.workspace }} # location for the settings.xml file

- name: Check settings after java setup
- name: Extract version and rename
run: |
cat ${{ github.workspace }}/settings.xml
d=$(date +%m-%d)
# Replace date in forge-gui-mobile/src/forge/Forge.java
sed -i -e "s/-SNAPSHOT/-SNAPSHOT-${d}/g" forge-gui-mobile/src/forge/Forge.java
ls forge-gui-mobile/src/forge/Forge.java
- name: maven-settings-xml-action
uses: whelk-io/maven-settings-xml-action@v20
with:
servers: '[{ "id": "cardforge-repo", "username": "${{ secrets.FTP_USERNAME }}", "password": "Fake_password" }]'

- name: Check settings after xml action
run: |
cat ~/.m2/settings.xml
- name: Check settings after xml action
run: |
cat ${{ github.workspace }}/.mvn/local-settings.xml
- name: Where are maven settings
run: |
mvn -X clean -Dcardforge-repo.username=${{ secrets.FTP_USERNAME }} -Dcardforge-repo.password=${{ secrets.FTP_PASSWORD }} | grep "settings"

0 comments on commit 8bdd910

Please sign in to comment.