-
Notifications
You must be signed in to change notification settings - Fork 31
63 lines (51 loc) · 1.58 KB
/
package.yml
File metadata and controls
63 lines (51 loc) · 1.58 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
name: Manual Maven Package & Release
on:
workflow_dispatch:
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Install Node.js 18
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install npm dependencies
run: npm install
- name: Build frontend (npm run build)
run: npm run build
- name: Set up JDK 25
uses: actions/setup-java@v4
with:
java-version: '25'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: |
mvn clean install
mvn package -DskipTests -Pci -q
- name: List files in target/symphony
run: |
echo "Files in target/symphony:"
ls -l target/symphony
- name: Compress symphony directory
run: |
tar -czvf symphony.tar.gz -C target symphony
- name: Create Release Draft
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: manual-release-${{ github.run_id }}
release_name: "Manual Release ${{ github.run_id }}"
draft: true
- name: Upload tar.gz to Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: symphony.tar.gz
asset_name: symphony.tar.gz
asset_content_type: application/gzip