Skip to content

Commit

Permalink
wip - Mon Sep 2 11:11:44 AM EDT 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
sfloess committed Sep 2, 2024
1 parent a9443ce commit addde9d
Showing 1 changed file with 13 additions and 30 deletions.
43 changes: 13 additions & 30 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Updating runner
run: sudo apt-get update

- name: Setup JDK 17
uses: actions/setup-java@v4
with:
Expand Down Expand Up @@ -42,26 +45,15 @@ jobs:
}
]
- name: Display settings.xml
run: cat ~/.m2/settings.xml

- name: Deploy
run: "mvn -DskipTests clean install deploy"




- uses: oleksiyrudenko/gha-git-credentials@latest
- name: Setup .gitconfig for version bumps
uses: oleksiyrudenko/gha-git-credentials@latest
with:
global: true
name: 'Version Bump'
email: 'version-bump@flossware.org'
actor: 'VersionBump'
token: '${{ secrets.GITHUB_TOKEN }}'

- name: Preparing environment
run: sudo apt-get update

- name: Preparing settings.xml
uses: s4u/maven-settings-action@v3.0.0
with:
Expand All @@ -75,29 +67,20 @@ jobs:
"property": {
"name": "Authorization",
"value": "${{ secrets.PACKAGECLOUD_TOKEN }}"
}
}
}
}
}
]
- uses: actions/checkout@v2

- run: cat ~/.m2/settings.xml

- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
}
}
]
- name: Incrementing pom.xml version
run: "mvn -U build-helper:parse-version versions:set -DnewVersion=\\${parsedVersion.majorVersion}.\\${parsedVersion.nextMinorVersion} versions:commit"

- name: Build
- name: Building
run: "mvn -U clean install"

- name: Deploy
- name: Deploy to packagecloud.io
run: "mvn -DskipTests deploy"

- name: Tag
run: "mvn scm:checkin scm:tag"
- name: Checkin and tag to github
run: "mvn scm:checkin scm:tag"

0 comments on commit addde9d

Please sign in to comment.