From e774a5758deaac7f0525ca094883520fece255d7 Mon Sep 17 00:00:00 2001 From: chmaurer Date: Wed, 27 Sep 2023 16:57:53 -0400 Subject: [PATCH 1/4] LMSA-9011 - changes for viewem --- .github/dependabot.yml | 8 ++++ .github/workflows/release.yml | 30 +++++++++++++ pom.xml | 80 +---------------------------------- 3 files changed, 40 insertions(+), 78 deletions(-) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/release.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..73f11c1 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,8 @@ +version: 2 +updates: + + - package-ecosystem: "github-actions" + directory: "/" + schedule: + # Check for updates to GitHub Actions every week + interval: "weekly" \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..8c8f006 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,30 @@ +# Description +# ----------- +# This workflow builds and releases the maven artifact +# +# Setup +# ----- +# 1. Create the following secrets inside GitHub: +# - LMS_GIT_CONFIG (Base64 encoded .gitconfig file) + +name: Maven Release + +on: + workflow_dispatch: + pull_request: +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Setup git and other necessary files + run: | + echo -n '${{ secrets.LMS_GIT_CONFIG }}' | base64 -d > ~/.gitconfig + - uses: actions/checkout@v3 + - name: Set up JDK + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + cache: maven + - name: Release prepare/perform + run: mvn clean release:prepare release:perform -B diff --git a/pom.xml b/pom.xml index 7728229..058b71c 100644 --- a/pom.xml +++ b/pom.xml @@ -13,7 +13,7 @@ - 5.0.7-SNAPSHOT + 0.99.6-SNAPSHOT View'em is a tool for posting scores, feedback, or other types of data for students to view. https://github.com/indiana-university/lms-canvas-viewem 2015 @@ -45,19 +45,6 @@ - - - Sonatype OSS Repository - Sonatype-OSS - https://oss.sonatype.org/service/local/staging/deploy/maven2 - - - Sonatype OSS Snapshot Repository - Sonatype-OSS - https://oss.sonatype.org/content/repositories/snapshots - - - scm:git:https://github.com/indiana-university/lms-canvas-viewem.git scm:git:https://github.com/indiana-university/lms-canvas-viewem.git @@ -86,12 +73,8 @@ 0.46 3.10.1 - 3.0.1 - 3.5.0 2.0.0 - 1.6.13 2.5.3 - 3.2.1 @@ -325,17 +308,6 @@ - - org.sonatype.plugins - nexus-staging-maven-plugin - ${plugins.nexus-staging.version} - true - - Sonatype-OSS - https://oss.sonatype.org/ - true - - org.apache.maven.plugins maven-release-plugin @@ -343,8 +315,7 @@ true false - release - deploy + install @@ -366,53 +337,6 @@ - - release - - - - org.apache.maven.plugins - maven-source-plugin - ${plugins.source.version} - - - attach-sources - - jar-no-fork - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - ${plugins.javadoc.version} - - - attach-javadocs - - jar - - - - - - org.apache.maven.plugins - maven-gpg-plugin - ${plugins.gpg.version} - - - sign-artifacts - verify - - sign - - - - - - - it12 From e3d2e8d28d67176d0484ebf93eb71b1de41d0267 Mon Sep 17 00:00:00 2001 From: LMS Maven Release Date: Wed, 27 Sep 2023 21:04:38 +0000 Subject: [PATCH 2/4] [maven-release-plugin] prepare release lms-canvas-viewem-0.99.6 --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 058b71c..751c8e2 100644 --- a/pom.xml +++ b/pom.xml @@ -13,7 +13,7 @@ - 0.99.6-SNAPSHOT + 0.99.6 View'em is a tool for posting scores, feedback, or other types of data for students to view. https://github.com/indiana-university/lms-canvas-viewem 2015 @@ -49,7 +49,7 @@ scm:git:https://github.com/indiana-university/lms-canvas-viewem.git scm:git:https://github.com/indiana-university/lms-canvas-viewem.git https://github.com/indiana-university/lms-canvas-viewem - HEAD + lms-canvas-viewem-0.99.6 From 9618631d710d7c55b3f0d3848b9ae68a93442dd5 Mon Sep 17 00:00:00 2001 From: LMS Maven Release Date: Wed, 27 Sep 2023 21:04:40 +0000 Subject: [PATCH 3/4] [maven-release-plugin] prepare for next development iteration --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 751c8e2..a8bec2b 100644 --- a/pom.xml +++ b/pom.xml @@ -13,7 +13,7 @@ - 0.99.6 + 0.99.7-SNAPSHOT View'em is a tool for posting scores, feedback, or other types of data for students to view. https://github.com/indiana-university/lms-canvas-viewem 2015 @@ -49,7 +49,7 @@ scm:git:https://github.com/indiana-university/lms-canvas-viewem.git scm:git:https://github.com/indiana-university/lms-canvas-viewem.git https://github.com/indiana-university/lms-canvas-viewem - lms-canvas-viewem-0.99.6 + HEAD From e6e57d22c99b899c18131d39fe513decbecf9a4c Mon Sep 17 00:00:00 2001 From: chmaurer Date: Wed, 27 Sep 2023 17:06:36 -0400 Subject: [PATCH 4/4] LMSA-9011 - remove temp pr trigger, reset version --- .github/workflows/release.yml | 1 - pom.xml | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8c8f006..a9a54d2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,7 +11,6 @@ name: Maven Release on: workflow_dispatch: - pull_request: jobs: release: runs-on: ubuntu-latest diff --git a/pom.xml b/pom.xml index a8bec2b..f777354 100644 --- a/pom.xml +++ b/pom.xml @@ -13,7 +13,7 @@ - 0.99.7-SNAPSHOT + 5.0.7-SNAPSHOT View'em is a tool for posting scores, feedback, or other types of data for students to view. https://github.com/indiana-university/lms-canvas-viewem 2015