forked from yamcs/yamcs
-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (38 loc) · 1.28 KB
/
maven-publish.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
name: Create package on push to release branch
on:
push:
branches: [ release ]
workflow_dispatch:
jobs:
build:
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/Hydrogen'
# Do npm install and build steps for YAMCS webapp.
- name: Install dependencies and build frontend
run: |
echo ${{ github.workspace }}
cd ${{ github.workspace }}/yamcs-web/src/main/webapp
npm install
npm run build
- name: Set up Java 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 21
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: Set up Maven
uses: stCarolas/[email protected]
with:
maven-version: 3.8.2
- name: Build with Maven
run: mvn clean install -DskipTests
- name: Publish to GitHub Packages Apache Maven
run: mvn deploy -DskipTests -s $GITHUB_WORKSPACE/settings.xml
env:
GITHUB_TOKEN: ${{ github.token }}