File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments