Use new icon in taskbar #337
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 Publish & Create GitHub Release(s) | |
on: | |
push: | |
branches: [ master, dev ] | |
tags: 'v*' | |
jobs: | |
build-and-release: | |
if: ${{ startsWith(github.ref, 'refs/tags/v') || github.ref != 'ref/heads/master' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: '13' | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Publish package to maven central | |
env: | |
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.JRELEASER_MAVENCENTRAL_USERNAME }} | |
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.JRELEASER_MAVENCENTRAL_PASSWORD }} | |
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.JRELEASER_GPG_PASSPHRASE }} | |
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.JRELEASER_GPG_SECRET_KEY }} | |
run: ./gradlew -Penv=release :Common:publishToMavenCentral :Vision:publishToMavenCentral :EOCV-Sim:publishToMavenCentral -x test -x :EOCV-Sim:shadowJar | |
if: ${{ startsWith(github.ref, 'refs/tags/v') }} | |
- name: Build release shadow jar with Gradle | |
run: ./gradlew -Penv=release shadowJar -x test | |
if: ${{ startsWith(github.ref, 'refs/tags/v') }} | |
- name: Build dev shadow jar with Gradle | |
run: | | |
SHA_SHORT="$(git rev-parse --short HEAD)" | |
./gradlew -Phash=$SHA_SHORT shadowJar -x test | |
if: ${{ !startsWith(github.ref, 'refs/tags/v') && github.ref != 'refs/heads/master' }} | |
- uses: pyTooling/Actions/releaser@r0 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
tag: 'Dev' | |
rm: true | |
files: | | |
EOCV-Sim/build/libs/*.jar | |
if: ${{ github.event_name == 'push' && github.ref != 'refs/heads/master' && !startsWith(github.ref, 'refs/tags/v')}} | |
- uses: softprops/action-gh-release@v1 | |
if: ${{ startsWith(github.ref, 'refs/tags/v') }} | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
files: 'EOCV-Sim/build/libs/*.jar' |