Skip to content

Commit

Permalink
Merge pull request #25 from indvd00m/feature/github-ci-cd
Browse files Browse the repository at this point in the history
Github actions CI/CD
  • Loading branch information
indvd00m authored Dec 31, 2023
2 parents 611c08c + b45a6b8 commit e8bd958
Show file tree
Hide file tree
Showing 9 changed files with 64 additions and 81 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Publish package to the Maven Central Repository
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Maven Central Repository
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Publish package
run: mvn --batch-mode deploy
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
31 changes: 31 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Java CI with Maven

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B -V --file pom.xml clean verify
8 changes: 6 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@

**/target/

.idea/

### IntelliJ IDEA ###
.idea
out
*.iws
*.iml
*.ipr
out/

cov-int/
Expand Down
43 changes: 0 additions & 43 deletions .travis.yml

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Java ASCII Render

[![Maven Central](https://img.shields.io/maven-central/v/com.indvd00m.ascii.render/ascii-render.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22com.indvd00m.ascii.render%22%20AND%20a:%22ascii-render%22)
[![Build Status](https://travis-ci.org/indvd00m/java-ascii-render.svg?branch=master)](https://travis-ci.org/indvd00m/java-ascii-render)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=com.indvd00m.ascii.render%3Ajava-ascii-render&metric=alert_status)](https://sonarcloud.io/dashboard?id=com.indvd00m.ascii.render%3Ajava-ascii-render)
[![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=com.indvd00m.ascii.render%3Ajava-ascii-render&metric=ncloc)](https://sonarcloud.io/dashboard?id=com.indvd00m.ascii.render%3Ajava-ascii-render)
[![Java CI with Maven](https://github.com/indvd00m/java-ascii-render/actions/workflows/maven.yml/badge.svg)](https://github.com/indvd00m/java-ascii-render/actions/workflows/maven.yml)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=indvd00m_java-ascii-render&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=indvd00m_java-ascii-render)
[![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=indvd00m_java-ascii-render&metric=ncloc)](https://sonarcloud.io/summary/new_code?id=indvd00m_java-ascii-render)
![GitHub](https://img.shields.io/github/license/indvd00m/java-ascii-render)

ASCII renderer in pure java with no external dependencies. Java ASCII Render supports graphical primitives/elements, layers, context, canvas.
Expand Down
1 change: 0 additions & 1 deletion ascii-render-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
<configuration>
<failOnError>true</failOnError>
<source>${project.source.version}</source>
<javadocExecutable>${java.home}/bin/javadoc</javadocExecutable>
</configuration>
<executions>
<execution>
Expand Down
5 changes: 2 additions & 3 deletions ascii-render/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>

Expand Down Expand Up @@ -92,7 +92,6 @@
<configuration>
<failOnError>true</failOnError>
<source>${project.source.version}</source>
<javadocExecutable>${java.home}/bin/javadoc</javadocExecutable>
</configuration>
<executions>
<execution>
Expand Down
29 changes: 0 additions & 29 deletions ci-cd/mvnsettings.xml

This file was deleted.

Binary file removed ci-cd/signingkey.asc.enc
Binary file not shown.

0 comments on commit e8bd958

Please sign in to comment.