-
-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (48 loc) · 1.38 KB
/
develop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
name: Publish WorkFlows for ELDependenci develop
on:
push:
branches: [ develop ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Source Code
id: checkout-source
uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
- run: mvn --batch-mode -Dmaven.deploy.skip=true clean package
name: build plugins
- uses: actions/upload-artifact@v4
name: 'upload plugins'
with:
name: 'plugins'
path: 'outputs/'
- uses: actions/upload-artifact@v4
name: 'upload javadocs'
with:
name: 'javadocs'
path: 'javadocs/'
upload_github_pkg_snapshot:
runs-on: ubuntu-latest
needs: [build]
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
- run: echo ::set-output name=version::$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
id: project
- name: Publish package
run: mvn --batch-mode clean deploy
if: ${{ endsWith(steps.project.outputs.version, '-SNAPSHOT') }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}