Maven test for settings #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Maven test for settings | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
deployments: write | |
packages: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
cache: 'maven' | |
server-id: cardforge-repo | |
server-username: ${{ secrets.FTP_USERNAME }} | |
server-password: ${{ secrets.FTP_PASSWORD }} | |
settings-path: ${{ github.workspace }} # location for the settings.xml file | |
- name: Extract version and rename | |
run: | | |
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 | |
grep '".*-SNAPSHOT-.*";' forge-gui-mobile/src/forge/Forge.java | |