Skip to content

Commit

Permalink
preparing CI for version 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
seyfu-t committed Sep 6, 2024
1 parent 598740d commit ce1cb28
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 31 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/maven-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Publish package to GitHub Packages

on:
release:
types: [created]

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
# Step 1: Check out the repository code
- name: Checkout repository
uses: actions/checkout@v3

# Step 2: Set up Java environment (Java 22) and authenticate with GitHub Packages
- name: Set up Java and authentication for GitHub Packages
uses: actions/setup-java@v4
with:
java-version: '22'
distribution: 'temurin'
server-id: github # Matches the server id in pom.xml or default one for GitHub
settings-path: ${{ github.workspace }} # This will automatically add authentication to the Maven settings
token: ${{ secrets.GH_TOKEN }}

# Step 3: Deploy to GitHub Packages
- name: Publish to GitHub Packages
run: mvn --batch-mode deploy
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ buildNumber.properties



*.code-workspace
*.code-workspace
.vscode/
10 changes: 2 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@ This project is a Java reimplementation and extension of [@iyyun](https://github

## This repo is a work-in-progress and so is this readme file

## Features

- **Gallo Processor**: Detects specific regions in an image.
- **Soros Processor**: Identifies salient regions in an image.
- **Yun Processor**: Locates potential barcodes within an image.

## Supported file formats

Any filetype that is supported by `Imgcodecs.imread(String filepath)` is supported.
Expand All @@ -32,7 +26,7 @@ According to the docs of OpenCV 4.9's maven package these are:
- Radiance HDR - \*.hdr, \*.pic (always supported)
- Raster and Vector geospatial data supported by GDAL (see the *Note* section)

### Note:
#### Note:

- The function determines the type of an image by the content, not by the file extension.

Expand All @@ -58,7 +52,7 @@ According to the docs of OpenCV 4.9's maven package these are:
- OpenCV 4.x or higher

## Installation

WIP


### Command Line Interface (CLI)
Expand Down
30 changes: 8 additions & 22 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<groupId>me.seyfu_t.JBarcode_1D</groupId>
<artifactId>JBarcode_1D</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<version>1.0-Pre</version>
<name>JBarcode_1D</name>
<url>http://maven.apache.org</url>

Expand All @@ -16,33 +16,19 @@
<main.class>me.seyfu_t.JBarcode_1D.JBarcode_1D</main.class>
</properties>

<repositories>
<distributionManagement>
<repository>
<id>WPI FIRST</id>
<url>https://first.wpi.edu/FRC/roborio/maven/release/</url>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/seyfu-t/JBarcode_1D</url>
</repository>
</repositories>
</distributionManagement>

<dependencies>
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox</artifactId>
<version>3.0.2</version>
</dependency>
<dependency>
<groupId>com.google.zxing</groupId>
<artifactId>core</artifactId>
<version>3.5.3</version>
</dependency>
<dependency>
<groupId>com.google.zxing</groupId>
<artifactId>javase</artifactId>
<version>3.5.3</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.11.0-M2</version>
<version>5.11.0</version>
<scope>test</scope>
</dependency>
<dependency>
Expand All @@ -53,7 +39,7 @@
<dependency>
<groupId>commons-cli</groupId>
<artifactId>commons-cli</artifactId>
<version>1.6.0</version>
<version>1.9.0</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
Expand Down

0 comments on commit ce1cb28

Please sign in to comment.