-
Notifications
You must be signed in to change notification settings - Fork 29
43 lines (41 loc) · 1.22 KB
/
etherip-package.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
name: Publish EtherIP
on:
workflow_dispatch:
concurrency:
group: ${{ github.ref }}-check
cancel-in-progress: true
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
with:
repository: 'ornl-epics/etherip'
- name: Setup Java
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4
with:
distribution: 'adopt'
java-version: '11'
- uses: whelk-io/maven-settings-xml-action@7802f6aec16c9098b4798ad1f1d8ac75198194bd # v3.0.0
with:
repositories: >
[
{
"id": "github",
"url": "https://maven.pkg.github.com/hivemq/hivemq-edge"
}
]
servers: >
[
{
"id":"github",
"username":"${{ github.actor }}",
"password":"${{ secrets.GITHUB_TOKEN }}"
}
]
- name: Build and Publish
run: mvn package deploy:deploy-file -DrepositoryId=github -Dfile=target/etherip-1.0.0.jar -DpomFile=pom.xml