This repository was archived by the owner on Feb 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
83 lines (68 loc) · 2.56 KB
/
Copy pathmaven-publish-snapshots.yml
File metadata and controls
83 lines (68 loc) · 2.56 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# This workflow will build a package using Maven and then publish it to GitHub packages when a PR is accepted/new content is pushed
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path
name: Maven Publish Snapshot
on:
push:
branches:
- development
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Delete old dataformat-parent package
uses: actions/delete-package-versions@v1
continue-on-error: true
with:
package-name: 'io.admin-shell.aas.dataformat-parent'
- name: Delete old dataformat-core package
uses: actions/delete-package-versions@v1
continue-on-error: true
with:
package-name: 'io.admin-shell.aas.dataformat-core'
- name: Delete old dataformat-aasx package
uses: actions/delete-package-versions@v1
continue-on-error: true
with:
package-name: 'io.admin-shell.aas.dataformat-aasx'
- name: Delete old dataformat-xml package
uses: actions/delete-package-versions@v1
continue-on-error: true
with:
package-name: 'io.admin-shell.aas.dataformat-xml'
- name: Delete old dataformat-aml package
uses: actions/delete-package-versions@v1
continue-on-error: true
with:
package-name: 'io.admin-shell.aas.dataformat-aml'
- name: Delete old dataformat-rdf package
uses: actions/delete-package-versions@v1
continue-on-error: true
with:
package-name: 'io.admin-shell.aas.dataformat-rdf'
- name: Delete old dataformat-json package
uses: actions/delete-package-versions@v1
continue-on-error: true
with:
package-name: 'io.admin-shell.aas.dataformat-json'
- name: Delete old validator package
uses: actions/delete-package-versions@v1
continue-on-error: true
with:
package-name: 'io.admin-shell.aas.validator'
- name: Publish to GitHub Packages Apache Maven
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml
env:
GITHUB_TOKEN: ${{ github.token }}