make sure the splash is loaded after clearing #528
Workflow file for this run
This file contains hidden or 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: "Release" | |
| on: | |
| push: | |
| tags: | |
| - '*' | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository and submodules | |
| uses: actions/checkout@v2 | |
| with: | |
| submodules: recursive | |
| - name: Get the version | |
| id: get_version | |
| run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} | |
| - name: Set Release Number Studio | |
| run: | | |
| echo $'app.name=BowlerStudio' > src/main/resources/com/neuronrobotics/bowlerstudio/build.properties | |
| echo "app.version=${{ steps.get_version.outputs.VERSION }}" >> src/main/resources/com/neuronrobotics/bowlerstudio/build.properties | |
| - name: Set OAuth Key | |
| env: # Or as an environment variable | |
| OAUTH_SECRET: ${{ secrets.OAUTH_SECRET }} | |
| run: | | |
| sed -i "s/REPLACE_ME/$OAUTH_SECRET/g" src/main/java/com/neuronrobotics/bowlerstudio/NameGetter.java | |
| - name: start xvfb | |
| run: | |
| Xvfb :99 & | |
| - name: initialize the X11 DISPLAY variable | |
| run: | |
| export DISPLAY=:99 | |
| - name: After JDK download, list directory contnts | |
| run: pwd; ls -la | |
| - name: Build with Gradle | |
| run: bash makeJar.sh | |
| - name: Set Java | |
| uses: actions/setup-java@v1 | |
| with: | |
| java-version: 25 | |
| jdkFile: zulu25.32.21-ca-fx-jdk25.0.2-linux_x64.tar.gz | |
| - name: release | |
| uses: actions/create-release@v1 | |
| id: create_release | |
| with: | |
| draft: false | |
| prerelease: false | |
| release_name: ${{ steps.version.outputs.version }} | |
| tag_name: ${{ github.ref }} | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| - name: upload JVM Configuration | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| with: | |
| upload_url: ${{ steps.create_release.outputs.upload_url }} | |
| asset_path: jvm.json | |
| asset_name: jvm.json | |
| asset_content_type: application/json | |
| - name: upload BowlerStudio artifact | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| with: | |
| upload_url: ${{ steps.create_release.outputs.upload_url }} | |
| asset_path: ./build/libs/BowlerStudio.jar | |
| asset_name: BowlerStudio.jar | |
| asset_content_type: application/jar |