Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gciatto/aur-release-action


https://github.com/gciatto/aur-release-action

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

# Build, check and deploy Gradle Action

A highly configurable composite action taking care of running a complete CI pipeline on a Gradle project

The workflow is the following:

1. Setup java at the version specified by the input parameter `java-version` from the distributor `java-distribution`, configuring also the information for Maven by populating the server username using input `maven-central-username`, the server password using `maven-central-password`, the gpg private key using `signing-key`, and the gpg passphrase using `signing-password`.
0. If the runner is Windows, configure the page file
0. Enable caching for gradle
0. Run `pre-build-command` inside `working-directory`
0. Run `build-command` inside `working-directory`
0. Run `check-command` inside `working-directory`
0. If `should-run-codecov` is set to `true`, then upload coverage informatio to codecov.io
0. if `should-deploy` is set to `true`, run `deploy-command` inside `working-directory`
0. Run `clean-command` inside `working-directory`
0. Turn off the gradle daemon gracefully by running `gradle-termination-command` inside `working-directory`
0. Force kill remaining daemons
0. Cleanup the Gradle cache

## Example

In the following examples, all values but secrets are set to their default. If you are fine with the default value, just omit the parameter.

```yaml
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- uses: DanySK/[email protected]
with:
pre-build-command: 'true'
build-command: ./gradlew assemble --parallel
check-command: ./gradlew check --parallel
clean-command: 'true'
deploy-command: ./gradlew publish --parallel
gradle-termination-command: ./gradlew --stop
java-distribution: temurin
java-version: '17'
should-run-codecov: true
should-deploy: false
maven-central-username: 'danysk'
maven-central-password:
maven-central-repo: 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/'
working-directory: '.'
custom-secret-0: ''
custom-secret-1: ''
custom-secret-2: ''
custom-secret-3: ''
custom-secret-4: ''
github-token: ${{ github.token }}
gradle-publish-secret:
gradle-publish-key:
signing-key:
signing-password:
npm-repo: 'https://registry.npmjs.org'
npm-token:
```