Skip to content

Commit

Permalink
Merge pull request #19 from indiana-university/gha_actions
Browse files Browse the repository at this point in the history
LMSA-9011 - changes for viewem
  • Loading branch information
maurercw authored Sep 28, 2023
2 parents 540edf5 + e6e57d2 commit db975fa
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 77 deletions.
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every week
interval: "weekly"
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# 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:
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
78 changes: 1 addition & 77 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,6 @@
</license>
</licenses>

<distributionManagement>
<repository>
<name>Sonatype OSS Repository</name>
<id>Sonatype-OSS</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
</repository>
<snapshotRepository>
<name>Sonatype OSS Snapshot Repository</name>
<id>Sonatype-OSS</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>

<scm>
<connection>scm:git:https://github.com/indiana-university/lms-canvas-viewem.git</connection>
<developerConnection>scm:git:https://github.com/indiana-university/lms-canvas-viewem.git</developerConnection>
Expand Down Expand Up @@ -86,12 +73,8 @@
<webjars-locator.version>0.46</webjars-locator.version>

<plugins.compiler.version>3.10.1</plugins.compiler.version>
<plugins.gpg.version>3.0.1</plugins.gpg.version>
<plugins.javadoc.version>3.5.0</plugins.javadoc.version>
<plugins.license.version>2.0.0</plugins.license.version>
<plugins.nexus-staging.version>1.6.13</plugins.nexus-staging.version>
<plugins.release.version>2.5.3</plugins.release.version>
<plugins.source.version>3.2.1</plugins.source.version>
</properties>

<dependencyManagement>
Expand Down Expand Up @@ -325,26 +308,14 @@
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>${plugins.nexus-staging.version}</version>
<extensions>true</extensions>
<configuration>
<serverId>Sonatype-OSS</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>${plugins.release.version}</version>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
<useReleaseProfile>false</useReleaseProfile>
<releaseProfiles>release</releaseProfiles>
<goals>deploy</goals>
<goals>install</goals>
</configuration>
</plugin>
</plugins>
Expand All @@ -366,53 +337,6 @@
</build>

<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>${plugins.source.version}</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${plugins.javadoc.version}</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>${plugins.gpg.version}</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>it12</id>
<dependencies>
Expand Down

0 comments on commit db975fa

Please sign in to comment.