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 5782179..23defa5 100644 --- a/pom.xml +++ b/pom.xml @@ -13,7 +13,7 @@ - 5.0.6-SNAPSHOT + 0.99.0-SNAPSHOT The Cross-listing Assistant in Canvas at Indiana University is a utility for combining enrollments from multiple course sections into a single primary course site, which reduces the administrative overhead of managing a separate version of the course for each section. https://github.com/indiana-university/lms-canvas-crosslisting 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-crosslisting.git scm:git:https://github.com/indiana-university/lms-canvas-crosslisting.git @@ -82,12 +69,8 @@ 0.47 3.11.0 - 3.1.0 - 3.5.0 2.0.0 - 1.6.13 3.0.0 - 3.3.0 @@ -314,17 +297,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 @@ -332,8 +304,7 @@ true false - release - deploy + install @@ -355,53 +326,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 - - - - - - - denodo