Skip to content

Commit

Permalink
configures release pipeline (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
codyfrehr committed Mar 10, 2024
1 parent b0d2eb3 commit dba700c
Show file tree
Hide file tree
Showing 50 changed files with 205 additions and 235 deletions.
27 changes: 20 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,24 @@ jobs:
distribution: 'liberica'
- name: Checkout
uses: actions/checkout@v4
- name: Compile
run: ./mvnw clean compile
- name: Build
run: ./mvnw --batch-mode clean compile
- name: Test
run: ./mvnw test
- name: Integration Test
run: ./mvnw verify -DskipUTs=true
- name: Install
run: ./mvnw install -DskipTests
run: ./mvnw --batch-mode verify
install:
name: Install
needs: test
runs-on: ubuntu-latest
steps:
- name: Install GPG Secret Key
run: cat <(echo -e "${{ secrets.GPG_SECRET_KEY }}") | gpg --batch --import
- name: Checkout
uses: actions/checkout@v4
- name: Install to Local Repository
env:
CENTRAL_USERNAME_TOKEN: ${{ secrets.CENTRAL_USERNAME_TOKEN }}
CENTRAL_PASSWORD_TOKEN: ${{ secrets.CENTRAL_PASSWORD_TOKEN }}
run: |
maven_args="--batch-mode"
maven_opts="-Dmaven.source.skip=false -Dmaven.javadoc.skip=false -Dgpg.skip=false -Dgpg.passphrase=${{ secrets.GPG_SECRET_KEY_PASSPHRASE }} -DskipTests"
./mvnw $maven_args clean install $maven_opts
2 changes: 1 addition & 1 deletion .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Test
run: ./mvnw clean test jacoco:report
run: ./mvnw --batch-mode clean test jacoco:report
- name: Codecov
uses: codecov/codecov-action@v4.0.1
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/license.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: License Check
run: ./mvnw license:check
- name: Check License Headers and Dependencies
run: ./mvnw --batch-mode license:check
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release
on:
release:
types: [ published ]

permissions:
contents: read

jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- name: Install GPG Secret Key
run: cat <(echo -e "${{ secrets.GPG_SECRET_KEY }}") | gpg --batch --import
- name: Checkout
uses: actions/checkout@v4
- name: Publish to Central Repository
env:
CENTRAL_USERNAME_TOKEN: ${{ secrets.CENTRAL_USERNAME_TOKEN }}
CENTRAL_PASSWORD_TOKEN: ${{ secrets.CENTRAL_PASSWORD_TOKEN }}
run: |
maven_args="-s .m2/settings.xml --batch-mode"
maven_opts="-Dmaven.source.skip=false -Dmaven.javadoc.skip=false -Dgpg.skip=false -Dgpg.passphrase=${{ secrets.GPG_SECRET_KEY_PASSPHRASE }} -DskipTests"
./mvnw $maven_args clean deploy $maven_opts
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Maven
.m2/
log/
target/

Expand Down
13 changes: 13 additions & 0 deletions .m2/settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">

<servers>
<server>
<id>central</id>
<username>${env.CENTRAL_USERNAME_TOKEN}</username>
<password>${env.CENTRAL_PASSWORD_TOKEN}</password>
</server>
</servers>

</settings>
1 change: 1 addition & 0 deletions .mvn/maven.config
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--no-transfer-progress
9 changes: 3 additions & 6 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -51,21 +51,18 @@ APIs are available for the following Xpdf functions (with more to come):

=== Documentation

We strongly recommend downloading sources in your IDE so that you have full access to our JavaDocs.
We strongly recommend downloading sources in your IDE so that you have tooltip access to our JavaDocs.
We made an extra effort to provide you with all the help you need, directly from your editor.

image::_doc/readme/javadoc_pdftextoptions.jpg[]
{empty}

We also strongly encourage you to read the Xpdf source documentation for a complete overview of each function and the options available to customize its execution.
Documentation can be found alongside the executable files in the package resources, or can be downloaded from https://www.xpdfreader.com/download.html[Xpdf] directly.

== PdfText API

PdfText API is an API for _pdftotext_, a function that converts a PDF file into a text file.

* Will extract text from a PDF file with text embedded in the document.
* Will NOT perform OCR to extract text from a scanned image of a document.
* It WILL extract text from a PDF file that has embedded text.
* It WILL NOT extract text from a PDF file that is a scanned image of a document.

=== Examples

Expand Down
123 changes: 0 additions & 123 deletions SCRIBBLES

This file was deleted.

23 changes: 0 additions & 23 deletions TODO

This file was deleted.

Binary file removed _doc/readme/javadoc_pdftextoptions.jpg
Binary file not shown.
4 changes: 2 additions & 2 deletions common-api/pom.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Common - The components shared between Xpdf APIs.
Common - The components shared between Xpdf APIs (https://xpdf.io)
Copyright © 2024 xpdf.io (info@xpdf.io)
This program is free software: you can redistribute it and/or modify
Expand Down Expand Up @@ -30,7 +30,7 @@
<artifactId>common-api</artifactId>

<name>Common</name>
<description>The components shared between Xpdf APIs.</description>
<description>The components shared between Xpdf APIs (https://xpdf.io)</description>
<url>https://xpdf.io</url>
<licenses>
<license>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Common - The components shared between Xpdf APIs.
* Common - The components shared between Xpdf APIs (https://xpdf.io)
* Copyright © 2024 xpdf.io (info@xpdf.io)
*
* This program is free software: you can redistribute it and/or modify
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Common - The components shared between Xpdf APIs.
* Common - The components shared between Xpdf APIs (https://xpdf.io)
* Copyright © 2024 xpdf.io (info@xpdf.io)
*
* This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion common-api/src/main/java/io/xpdf/api/common/XpdfTool.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Common - The components shared between Xpdf APIs.
* Common - The components shared between Xpdf APIs (https://xpdf.io)
* Copyright © 2024 xpdf.io (info@xpdf.io)
*
* This program is free software: you can redistribute it and/or modify
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Common - The components shared between Xpdf APIs.
* Common - The components shared between Xpdf APIs (https://xpdf.io)
* Copyright © 2024 xpdf.io (info@xpdf.io)
*
* This program is free software: you can redistribute it and/or modify
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Common - The components shared between Xpdf APIs.
* Common - The components shared between Xpdf APIs (https://xpdf.io)
* Copyright © 2024 xpdf.io (info@xpdf.io)
*
* This program is free software: you can redistribute it and/or modify
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Common - The components shared between Xpdf APIs.
* Common - The components shared between Xpdf APIs (https://xpdf.io)
* Copyright © 2024 xpdf.io (info@xpdf.io)
*
* This program is free software: you can redistribute it and/or modify
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Common - The components shared between Xpdf APIs.
* Common - The components shared between Xpdf APIs (https://xpdf.io)
* Copyright © 2024 xpdf.io (info@xpdf.io)
*
* This program is free software: you can redistribute it and/or modify
Expand Down

0 comments on commit dba700c

Please sign in to comment.