Fix sRGB in processor #55
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: Build and Deploy | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
release: | |
types: [published] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 1 | |
- name: Set up JDK 1.8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.8 | |
- name: Build with Gradle | |
run: | | |
export VERSION="`if [[ $GITHUB_REF == refs\/tags* ]]; then echo ${GITHUB_REF//refs\/tags\//}; fi`" | |
if [ "$VERSION" = "" ]; | |
then | |
branch="`if [[ $GITHUB_REF == refs\/heads* ]]; then echo ${GITHUB_REF//refs\/heads\//}; fi`" | |
export VERSION="$branch-SNAPSHOT" | |
fi | |
mkdir -p dist/maven | |
gradle -Pin_version="$VERSION" build testJar publishAllPublicationsToDistRepository | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: build-out | |
path: build/libs | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: maven | |
path: dist/maven | |
- name: Deploy to github packages | |
if: github.event_name == 'release' | |
run: | | |
source .github/actions/tools/uploadToMaven.sh | |
uploadAllToMaven dist/maven/ https://maven.pkg.github.com/${GITHUB_REPOSITORY} token ${{ secrets.GITHUB_TOKEN }} | |
- name: Publish to jMonkeyEngine Library | |
if: github.event_name == 'release' | |
uses: jMonkeyEngine/jme-library-publish-action@1.0 | |
with: | |
userId: ${{ secrets.LIBRARY_USER_ID }} | |
authId: ${{ secrets.LIBRARY_AUTH_ID }} | |
authKey: ${{ secrets.LIBRARY_AUTH_KEY }} | |
token: ${{ secrets.GITHUB_TOKEN }} |