Skip to content

krogerco/Shared-CI-Workflow-Android

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Shared-CI-Workflow-Android

Shared workflows used by Kroger's GitHub actions.

Workflows

These workflows are specific to our use case and rely heavily on the Semantic Release and Conventional Commits tooling to automate our versioning. However, if you currently use or are starting a new project and use these tools you could use these workflows entirely as well. Click the link header of a workflow to view its conifguration file including available inputs and default values.

Usage

Workflow to handle automatic versioning of this repository and the actions repository.

name: Actions Release

on: push

jobs:
  meta_workflow:
    name: push
    uses: krogerco/Shared-CI-Workflow-Android/.github/workflows/meta_workflow.yml@<latest-version>
name: Commit

on:
  push:

jobs:
  semantic_library_workflow:
    name: push
    uses: krogerco/Shared-CI-Workflow-Android/.github/workflows/semantic_library_workflow.yml@<latest-version>
    secrets:
      ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.ORG_GRADLE_PROJECT_mavenCentralUsername }}
      ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.ORG_GRADLE_PROJECT_mavenCentralPassword }}
      ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKey }}
      ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKeyId }}
      ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKeyPassword }}
      REPO_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Secrets

  • REPO_ACCESS_TOKEN:
    • Available by default
    • Accessed as ${{ secrets.GITHUB_TOKEN }}

Publishing Secrets

All publishing secrets should be set in your repository secret settings when the semantic library workflow is used.

  • ORG_GRADLE_PROJECT_mavenCentralUsername:
    • Username for Maven Central
  • ORG_GRADLE_PROJECT_mavenCentralPassword:
    • Password for Maven Central
  • ORG_GRADLE_PROJECT_signingInMemoryKey:
    • The private GPG key.
  • ORG_GRADLE_PROJECT_signingInMemoryKeyId:
    • The public key ID.
  • ORG_GRADLE_PROJECT_signingInMemoryKeyPassword:
    • The GPG passphrase (if created with one)

About

Shared workflows used in GitHub actions.

Topics

Resources

License

Stars

Watchers

Forks

Contributors