Skip to content

Commit 6203cc3

Browse files
authored
Merge pull request #82 from CoagulateSL/workflow
Workflow
2 parents fb93f4a + 03de823 commit 6203cc3

2 files changed

Lines changed: 52 additions & 21 deletions

File tree

.github/workflows/compile.yaml

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -28,25 +28,4 @@ jobs:
2828
PACKAGE_READ: ${{ secrets.PACKAGE_READ }}
2929
working-directory: JavaCore
3030
run: mvn --batch-mode clean compile
31-
- name: Checkout depender SLCore
32-
uses: actions/checkout@v2
33-
with:
34-
repository: 'CoagulateSL/SLCore'
35-
path: SLCore
36-
token: ${{ secrets.PACKAGE_READ }}
37-
submodules: true
38-
- name: Git Submodule Update
39-
run: |
40-
cd SLCore
41-
git pull --recurse-submodules
42-
git submodule update --remote --recursive
43-
- name: Commit update
44-
working-directory: SLCore
45-
run: |
46-
git config --global user.name 'Git bot'
47-
git config --global user.email 'bot@noreply.github.com'
48-
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/CoagulateSL/SLCore
49-
git commit -am "Auto updated submodule references" && git push || echo "No changes to commit"
50-
51-
5231

.github/workflows/release.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
packages: read
14+
15+
steps:
16+
- name: Checkout JavaCore
17+
uses: actions/checkout@v2
18+
with:
19+
repository: 'CoagulateSL/JavaCore'
20+
path: JavaCore
21+
- name: Set up JDK 17
22+
uses: actions/setup-java@v2
23+
with:
24+
java-version: '17'
25+
distribution: 'adopt'
26+
- name: Build with Maven
27+
env:
28+
PACKAGE_READ: ${{ secrets.PACKAGE_READ }}
29+
working-directory: JavaCore
30+
run: mvn --batch-mode clean compile
31+
- name: Checkout depender SLCore
32+
uses: actions/checkout@v2
33+
with:
34+
repository: 'CoagulateSL/SLCore'
35+
path: SLCore
36+
token: ${{ secrets.PACKAGE_READ }}
37+
submodules: true
38+
- name: Git Submodule Update
39+
run: |
40+
cd SLCore
41+
git pull --recurse-submodules
42+
git submodule update --remote --recursive
43+
- name: Commit update
44+
working-directory: SLCore
45+
run: |
46+
git config --global user.name 'Git bot'
47+
git config --global user.email 'bot@noreply.github.com'
48+
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/CoagulateSL/SLCore
49+
git commit -am "Auto updated submodule references" && git push || echo "No changes to commit"
50+
51+
52+

0 commit comments

Comments
 (0)