diff --git a/.github/workflows/compile.yaml b/.github/workflows/compile.yaml index 80b68a9..d0af614 100644 --- a/.github/workflows/compile.yaml +++ b/.github/workflows/compile.yaml @@ -28,25 +28,4 @@ jobs: PACKAGE_READ: ${{ secrets.PACKAGE_READ }} working-directory: JavaCore run: mvn --batch-mode clean compile - - name: Checkout depender SLCore - uses: actions/checkout@v2 - with: - repository: 'CoagulateSL/SLCore' - path: SLCore - token: ${{ secrets.PACKAGE_READ }} - submodules: true - - name: Git Submodule Update - run: | - cd SLCore - git pull --recurse-submodules - git submodule update --remote --recursive - - name: Commit update - working-directory: SLCore - run: | - git config --global user.name 'Git bot' - git config --global user.email 'bot@noreply.github.com' - git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/CoagulateSL/SLCore - git commit -am "Auto updated submodule references" && git push || echo "No changes to commit" - - diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..f8872e4 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,52 @@ +name: Release + +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: read + packages: read + + steps: + - name: Checkout JavaCore + uses: actions/checkout@v2 + with: + repository: 'CoagulateSL/JavaCore' + path: JavaCore + - name: Set up JDK 17 + uses: actions/setup-java@v2 + with: + java-version: '17' + distribution: 'adopt' + - name: Build with Maven + env: + PACKAGE_READ: ${{ secrets.PACKAGE_READ }} + working-directory: JavaCore + run: mvn --batch-mode clean compile + - name: Checkout depender SLCore + uses: actions/checkout@v2 + with: + repository: 'CoagulateSL/SLCore' + path: SLCore + token: ${{ secrets.PACKAGE_READ }} + submodules: true + - name: Git Submodule Update + run: | + cd SLCore + git pull --recurse-submodules + git submodule update --remote --recursive + - name: Commit update + working-directory: SLCore + run: | + git config --global user.name 'Git bot' + git config --global user.email 'bot@noreply.github.com' + git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/CoagulateSL/SLCore + git commit -am "Auto updated submodule references" && git push || echo "No changes to commit" + + +