Merge pull request #600 from RaiMan/dependabot/maven/IDE/io.undertow-… #39
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: IDE Snapshot | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'IDE/pom*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '11' | |
distribution: 'adopt' | |
server-id: ossrh | |
server-username: MAVEN_USERNAME | |
server-password: MAVEN_PASSWORD | |
# --------------------------------------- Windows | |
- name: Windows Build with Maven | |
run: mvn -B -pl IDE -P complete-win-jar package | egrep -v "^\[INFO\].*?Download.*?http" | |
- name: Remove thin jar | |
run: rm ${{ github.workspace }}/IDE/target/sikulixide-2.1.0-SNAPSHOT.jar | |
- name: Rename fat jar | |
run: mv ${{ github.workspace }}/IDE/target/sikulixide-2.1.0-SNAPSHOT-complete-win.jar ${{ github.workspace }}/IDE/target/sikulixwin-2.1.0-SNAPSHOT.jar | |
- name: Publish to OSSRH | |
run: mvn -B -e deploy:deploy-file -Dfile='${{ github.workspace }}/IDE/target/sikulixwin-2.1.0-SNAPSHOT.jar' -Dpackaging=jar -DgroupId=com.sikulix -DartifactId=sikulixwin -Dversion=2.1.0-SNAPSHOT -DrepositoryId=ossrh -Durl='https://oss.sonatype.org/content/repositories/snapshots' | egrep -v "^\[INFO\].*?Download.*?http" | |
env: | |
MAVEN_USERNAME: ${{ secrets.OSSRH_USER }} | |
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASS }} | |
# --------------------------------------- macOS | |
- name: macOS Build with Maven | |
run: mvn -B -pl IDE -P complete-mac-jar clean package | egrep -v "^\[INFO\].*?Download.*?http" | |
- name: Remove thin jar | |
run: rm ${{ github.workspace }}/IDE/target/sikulixide-2.1.0-SNAPSHOT.jar | |
- name: Rename fat jar | |
run: mv ${{ github.workspace }}/IDE/target/sikulixide-2.1.0-SNAPSHOT-complete-mac.jar ${{ github.workspace }}/IDE/target/sikulixmac-2.1.0-SNAPSHOT.jar | |
- name: Publish to OSSRH | |
run: mvn -B -e deploy:deploy-file -Dfile='${{ github.workspace }}/IDE/target/sikulixmac-2.1.0-SNAPSHOT.jar' -Dpackaging=jar -DgroupId=com.sikulix -DartifactId=sikulixmac -Dversion=2.1.0-SNAPSHOT -DrepositoryId=ossrh -Durl='https://oss.sonatype.org/content/repositories/snapshots' | egrep -v "^\[INFO\].*?Download.*?http" | |
env: | |
MAVEN_USERNAME: ${{ secrets.OSSRH_USER }} | |
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASS }} | |
# --------------------------------------- Linux | |
- name: Linux Build with Maven | |
run: mvn -B -pl IDE -P complete-lux-jar clean package | egrep -v "^\[INFO\].*?Download.*?http" | |
- name: Remove thin jar | |
run: rm ${{ github.workspace }}/IDE/target/sikulixide-2.1.0-SNAPSHOT.jar | |
- name: Rename fat jar | |
run: mv ${{ github.workspace }}/IDE/target/sikulixide-2.1.0-SNAPSHOT-complete-lux.jar ${{ github.workspace }}/IDE/target/sikulixlux-2.1.0-SNAPSHOT.jar | |
- name: Publish to OSSRH | |
run: mvn -B -e deploy:deploy-file -Dfile='${{ github.workspace }}/IDE/target/sikulixlux-2.1.0-SNAPSHOT.jar' -Dpackaging=jar -DgroupId=com.sikulix -DartifactId=sikulixlux -Dversion=2.1.0-SNAPSHOT -DrepositoryId=ossrh -Durl='https://oss.sonatype.org/content/repositories/snapshots' | egrep -v "^\[INFO\].*?Download.*?http" | |
env: | |
MAVEN_USERNAME: ${{ secrets.OSSRH_USER }} | |
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASS }} | |
# ------------------------------ Links in README | |
- name: new latest | |
run: bash Support/latestIDE | |
- name: Commit README | |
run: | | |
git config user.name "GitHub Actions Bot" | |
git config user.email "<>" | |
git add -A | |
git commit -m "test" | |
git push origin master |