From bf3209fb3552518ab9ce6c1d1f835eb405a98d10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Catal=C3=A3o?= Date: Wed, 30 Nov 2022 13:28:33 +0000 Subject: [PATCH] Added release drafter & automated packages --- .github/release-drafter.yml | 33 ++++++++++++++++++++++ .github/workflows/maven-publish.yml | 24 ++++++++++++++++ .github/workflows/release-drafter.yml | 25 ++++++++++++++++ .project | 4 +-- .settings/org.eclipse.core.resources.prefs | 1 - bin/mac/deploy.sh | 14 +++++++++ broker/pom.xml | 8 ++++++ brokerRest/pom.xml | 8 ++++++ dil/pom.xml | 8 ++++++ integration/pom.xml | 8 ++++++ integrationRest/pom.xml | 8 ++++++ pom.xml | 8 ++++++ 12 files changed, 146 insertions(+), 3 deletions(-) create mode 100644 .github/release-drafter.yml create mode 100644 .github/workflows/maven-publish.yml create mode 100644 .github/workflows/release-drafter.yml create mode 100644 bin/mac/deploy.sh diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 00000000..92741be0 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,33 @@ +name-template: 'v$RESOLVED_VERSION' +tag-template: 'v$RESOLVED_VERSION' +categories: + - title: '🚀 Features' + labels: + - 'feature' + - 'enhancement' + - title: '🐛 Bug Fixes' + labels: + - 'fix' + - 'bugfix' + - 'bug' + - title: '🧰 Maintenance' + labels: + - 'chore' + - 'maintenance' +change-template: '- $TITLE @$AUTHOR (#$NUMBER)' +change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks. +#version-resolver: +# major: +# labels: +# - 'major' +# minor: +# labels: +# - 'minor' +# patch: +# labels: +# - 'patch' +# default: patch +template: | + ## Changes + + $CHANGES \ No newline at end of file diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml new file mode 100644 index 00000000..220b522f --- /dev/null +++ b/.github/workflows/maven-publish.yml @@ -0,0 +1,24 @@ +name: Publish package to GitHub Packages +on: + release: + types: [created, updated] + push: + branches: + - master +jobs: + publish: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'adopt' + - name: Publish package + run: | + sh ./bin/mac/deploy.sh + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 00000000..cb669713 --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,25 @@ +name: Release Drafter + +on: + push: + branches: + - master + - develop + pull_request: + types: [opened, reopened, synchronize] + +permissions: + contents: read + +jobs: + update_release_draft: + permissions: + contents: write + pull-requests: write + + runs-on: ubuntu-latest + + steps: + - uses: release-drafter/release-drafter@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.project b/.project index 7d73dbdb..64cbb589 100644 --- a/.project +++ b/.project @@ -39,12 +39,12 @@ - 1649350859958 + 1667865566053 30 org.eclipse.core.resources.regexFilterMatcher - node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ + node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs index 8dd9b1df..99f26c02 100644 --- a/.settings/org.eclipse.core.resources.prefs +++ b/.settings/org.eclipse.core.resources.prefs @@ -1,3 +1,2 @@ eclipse.preferences.version=1 -encoding//src/test/java=UTF-8 encoding/=UTF-8 diff --git a/bin/mac/deploy.sh b/bin/mac/deploy.sh new file mode 100644 index 00000000..071bb35f --- /dev/null +++ b/bin/mac/deploy.sh @@ -0,0 +1,14 @@ +#!/bin/bash +parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P ) + +cd "$parent_path" & + +mvn -f ../../broker/pom.xml clean deploy & + +mvn -f ../../brokerRest/pom.xml clean deploy & + +mvn -f ../../dil/pom.xml clean deploy & + +mvn -f ../../integration/pom.xml clean deploy & + +mvn -f ../../integrationRest/pom.xml clean deploy \ No newline at end of file diff --git a/broker/pom.xml b/broker/pom.xml index 35c626f2..c86850fd 100644 --- a/broker/pom.xml +++ b/broker/pom.xml @@ -20,6 +20,14 @@ file:///${project.parent.basedir}/rules.xml + + + github + Temporary Staging Repository + https://maven.pkg.github.com/assimbly/runtime + + + org.assimbly diff --git a/brokerRest/pom.xml b/brokerRest/pom.xml index 910547b8..82c852c0 100644 --- a/brokerRest/pom.xml +++ b/brokerRest/pom.xml @@ -20,6 +20,14 @@ file:///${project.parent.basedir}/rules.xml + + + github + Temporary Staging Repository + https://maven.pkg.github.com/assimbly/runtime + + + org.assimbly diff --git a/dil/pom.xml b/dil/pom.xml index f0d4983c..587f7eb4 100644 --- a/dil/pom.xml +++ b/dil/pom.xml @@ -18,6 +18,14 @@ file:///${project.parent.basedir}/rules.xml + + + github + Temporary Staging Repository + https://maven.pkg.github.com/assimbly/runtime + + + org.assimbly diff --git a/integration/pom.xml b/integration/pom.xml index f2cc6a3f..9e0f614e 100644 --- a/integration/pom.xml +++ b/integration/pom.xml @@ -18,6 +18,14 @@ file:///${project.parent.basedir}/rules.xml + + + github + Temporary Staging Repository + https://maven.pkg.github.com/assimbly/runtime + + + diff --git a/integrationRest/pom.xml b/integrationRest/pom.xml index 1148c3cd..76423886 100644 --- a/integrationRest/pom.xml +++ b/integrationRest/pom.xml @@ -20,6 +20,14 @@ file:///${project.parent.basedir}/rules.xml + + + github + Temporary Staging Repository + https://maven.pkg.github.com/assimbly/runtime + + + org.assimbly diff --git a/pom.xml b/pom.xml index 95d904bf..d3ed2ae3 100644 --- a/pom.xml +++ b/pom.xml @@ -31,6 +31,14 @@ 1.6.13 + + + github + Temporary Staging Repository + https://maven.pkg.github.com/assimbly/runtime + + +