Skip to content

entur/gha-artifactory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


entur/gha-artifactory

Entur/Artifactory/CI

GitHub Actions for working with Artifactory

Golden Path

  • Using the Maven Publish Plugin
  • ./gradle-properties file at the root of your repository
  • ./gradle-properties contains "version" variable with semver version format, e.g., "1.0.0"
  • Job needs write permissions to the repository to push back the version change
  • Use after Gradle build to have the artifact ready for publishing
  • Use on main branch push events, to avoid pushing back to the repo unnecessarily

Example

Let's look at an example, assume our repo is called amazing-app:

λ amazing-app ❯ tree
.
├── README.md
├── gradle.properties
# ci.yml
name: CI

on:
  push:
    branches:
      - main

jobs:
  update-version:
    permissions:
      contents: write
    uses: entur/gha-artifactory/.github/actions/update-version@v1

  maven-publish:
    uses: entur/gha-artifactory/.github/actions/maven-publish@v1

About

No description or website provided.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors