Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions .github/workflows/compile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"



52 changes: 52 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -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"