diff --git a/.github/workflows/conventionalpr.yml b/.github/workflows/conventionalpr.yml
index 2ef51f7..758bee7 100644
--- a/.github/workflows/conventionalpr.yml
+++ b/.github/workflows/conventionalpr.yml
@@ -2,7 +2,7 @@ name: Conventional Commit Parser
on:
pull_request:
branches: [main, master, develop]
- types: [opened, reopened, edited, review_requested, synchronize]
+ types: [opened, reopened, edited, synchronize]
jobs:
conventional_commit:
@@ -11,6 +11,6 @@ jobs:
permissions:
pull-requests: read
steps:
- - uses: webiny/action-conventional-commits@v1.3.0
- with:
+ - uses: amannn/action-semantic-pull-request@v6.1.1
+ env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.github/workflows/java.yml b/.github/workflows/java.yml
index ec2a7d5..b3e2506 100644
--- a/.github/workflows/java.yml
+++ b/.github/workflows/java.yml
@@ -1,10 +1,9 @@
name: Build and Deploy Java Parser
on:
- push:
- branches: [develop, main]
- tags: ['v*']
-
+ release:
+ types: [published]
+
jobs:
build:
runs-on: ubuntu-latest
@@ -41,27 +40,12 @@ jobs:
- name: Install ANTLR4
run: make dev
- - name: Set SNAPSHOT version (develop branch)
- if: github.ref == 'refs/heads/develop'
- run: |
- cd java
- BASE_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout | sed 's/-SNAPSHOT//')
- mvn versions:set -DnewVersion="${BASE_VERSION}-SNAPSHOT" -DgenerateBackupPoms=false
-
- - name: Set release version (main branch)
- if: github.ref == 'refs/heads/main'
+ - name: Set release version
run: |
cd java
BASE_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout | sed 's/-SNAPSHOT//')
mvn versions:set -DnewVersion="${BASE_VERSION}" -DgenerateBackupPoms=false
- - name: Set release version (tag)
- if: startsWith(github.ref, 'refs/tags/v')
- run: |
- cd java
- TAG_VERSION=${GITHUB_REF_NAME#v}
- mvn versions:set -DnewVersion="${TAG_VERSION}" -DgenerateBackupPoms=false
-
- name: Generate and Compile Java Code
run: make java_parser
@@ -72,16 +56,7 @@ jobs:
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- - name: Deploy SNAPSHOT to Sonatype Snapshots
- if: github.ref == 'refs/heads/develop'
- run: cd java && mvn clean deploy -DskipCentralPublishing=true
- env:
- MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
- MAVEN_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
- MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
-
- name: Deploy Release to Central Portal
- if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')
run: cd java && mvn clean deploy
env:
MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
diff --git a/README.md b/README.md
index f73ef93..7e09897 100644
--- a/README.md
+++ b/README.md
@@ -34,7 +34,7 @@ To use UVL in your projects, you can either:
io.github.universal-variability-language
uvl-parser
- 0.3
+ 0.5.1
```
### Python Parser
diff --git a/java/pom.xml b/java/pom.xml
index 88ec875..984d1b3 100644
--- a/java/pom.xml
+++ b/java/pom.xml
@@ -11,7 +11,7 @@
io.github.universal-variability-language
uvl-parser
- 0.5.0
+ 0.5.1