Skip to content

wesleyegberto/gh-actions-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Github Actions with Java

Status

github-release-badge github-license-badge

GitHub Actions
github-badge
github-history-badge

Description

Repository to test different Github Actions with Java.

Workflows:

Java Workflow Example - Build, Test and Deploy

Simple workflow to build, test and deploy.

  • Checkout
  • Environment setup:
    • JDK 11
    • Maven packages caching
  • Maven build
  • Maven test
  • Mave deploy to Github Packages
  • Upload artifact to Github to be available to download

Example of workflow runs:

Results

Draft new release

Manual workflow to create a branch release to be merged if the workflow passes.

  • Create a branch with the format release/x.y.z
  • Build, test and upload the test output to be verified
  • After the tests it opens a PR to master to be merged

Publish new release

Workflow to release the builds after a branch release/x.y.z is merged.

  • Create a new release
  • Open a PR to develop branch

Links