Skip to content

fix startup

fix startup #244

Workflow file for this run

# test
name: Publish package to GitHub Packages
on:
push:
tags:
- '*'
jobs:
linux:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v1
with:
submodules: recursive
- name: Set OAuth Key
env: # Or as an environment variable
OAUTH_SECRET: ${{ secrets.OAUTH_SECRET }}
run: |
sed -i "s/REPLACE_ME/$OAUTH_SECRET/g" BowlerStudio/src/main/java/com/neuronrobotics/bowlerstudio/NameGetter.java
- 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=CaDoodle' > BowlerStudio/src/main/resources/com/neuronrobotics/bowlerstudio/build.properties
echo "app.version=${{ steps.get_version.outputs.VERSION }}" >> BowlerStudio/src/main/resources/com/neuronrobotics/bowlerstudio/build.properties
- name: Build
env:
VERSION_SEMVER: ${{ steps.vars.outputs.tag }}
run: bash build.sh
- name: Move jar
run: |
mv build/libs/* .
ls -al
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
CaDoodle-Application.jar
jvm.json
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}