Skip to content

Commit ea567c0

Browse files
committed
Merge branch 'feature/submodule-core-plugin-ex' of https://github.com/Sassine/sqlschema2java into feature/submodule-core-plugin-ex
2 parents 65842dc + 23b567e commit ea567c0

3 files changed

Lines changed: 52 additions & 46 deletions

File tree

.github/workflows/deploy-core.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/deploy-maven-plugin.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/deploy.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Publish package to GitHub Packages
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
publish-core:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
contents: read
10+
packages: write
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-java@v3
14+
with:
15+
java-version: '11'
16+
distribution: 'adopt'
17+
- name: Publish package SQLSchema2Java Core
18+
run: |
19+
cd sqlschema2java-core
20+
mvn --batch-mode deploy
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
24+
deploy-await:
25+
runs-on: ubuntu-latest
26+
needs: publish-core
27+
steps:
28+
- name: Sleep for 30 seconds
29+
uses: jakejarvis/wait-action@master
30+
with:
31+
time: '5m'
32+
33+
publish-maven-plugin:
34+
runs-on: ubuntu-latest
35+
environment:
36+
name: plugin
37+
permissions:
38+
contents: read
39+
packages: write
40+
needs: deploy-await
41+
steps:
42+
- uses: actions/checkout@v3
43+
- uses: actions/setup-java@v3
44+
with:
45+
java-version: '11'
46+
distribution: 'adopt'
47+
- name: Publish package SQLSchema2Java Core
48+
run: |
49+
cd sqlschema2java-maven-plugin
50+
mvn --batch-mode deploy
51+
env:
52+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)