From a997dc787877cdd3a5ebde5e9d86ec396f5c9b34 Mon Sep 17 00:00:00 2001
From: querwurzel <>
Date: Sun, 22 Oct 2023 12:38:47 +0200
Subject: [PATCH] rename parent package
---
.github/workflows/main.yml | 21 +++++++++++++++++----
.gitignore | 1 +
backend/pom.xml | 5 +++--
frontend/pom.xml | 4 ++--
pom.xml | 5 +++--
5 files changed, 26 insertions(+), 10 deletions(-)
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index e5403d2..fbd9f54 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -1,6 +1,8 @@
name: CI
-on: [push]
+on:
+ workflow_dispatch:
+ push:
jobs:
build:
@@ -23,12 +25,23 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
- mvn deploy -DskipTests -Denv=mysql
+ mvn deploy -DskipTests -Drevision=1.0.${{ github.run_number }} -Denv=mysql
- uses: actions/delete-package-versions@v4
if: github.ref == 'refs/heads/main'
with:
- package-name: 'com.github.binpastes.binpastes'
+ package-name: 'com.github.binpastes.app'
+ package-type: 'maven'
+ min-versions-to-keep: 10
+ - uses: actions/delete-package-versions@v4
+ if: github.ref == 'refs/heads/main'
+ with:
+ package-name: 'com.github.binpastes.frontend'
+ package-type: 'maven'
+ min-versions-to-keep: 10
+ - uses: actions/delete-package-versions@v4
+ if: github.ref == 'refs/heads/main'
+ with:
+ package-name: 'com.github.binpastes.backend'
package-type: 'maven'
min-versions-to-keep: 10
- ignore-versions: '1.0.0-SNAPSHOT'
diff --git a/.gitignore b/.gitignore
index b416b6a..481726f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,6 +2,7 @@ target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/
+pom.xml.versionsBackup
### STS ###
.apt_generated
diff --git a/backend/pom.xml b/backend/pom.xml
index 2a5a7c9..f4a6dc1 100644
--- a/backend/pom.xml
+++ b/backend/pom.xml
@@ -6,8 +6,8 @@
com.github.binpastes
- binpastes
- 1.0.0-SNAPSHOT
+ app
+ ${revision}
../pom.xml
@@ -17,6 +17,7 @@
com.github.binpastes
frontend
+ ${revision}
diff --git a/frontend/pom.xml b/frontend/pom.xml
index 4cec7af..3a53426 100644
--- a/frontend/pom.xml
+++ b/frontend/pom.xml
@@ -6,8 +6,8 @@
com.github.binpastes
- binpastes
- 1.0.0-SNAPSHOT
+ app
+ ${revision}
../pom.xml
diff --git a/pom.xml b/pom.xml
index 0d7ec5a..4dd75e9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -11,8 +11,8 @@
com.github.binpastes
- binpastes
- 1.0.0-SNAPSHOT
+ app
+ ${revision}
pom
BinPastes
@@ -31,6 +31,7 @@
UTF-8
+ 1.0.0-SNAPSHOT
17