Skip to content

Commit 5357bcb

Browse files
committed
Add standard build and release actions
1 parent 879f079 commit 5357bcb

4 files changed

Lines changed: 56 additions & 80 deletions

File tree

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 45 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Build with Maven
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
workflow_dispatch:
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
12+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
13+
14+
jobs:
15+
build:
16+
uses: openmrs/openmrs-contrib-gha-workflows/.github/workflows/build-backend-module.yml@main
17+
secrets:
18+
MAVEN_REPO_USERNAME: ${{ secrets.MAVEN_REPO_USERNAME }}
19+
MAVEN_REPO_API_KEY: ${{ secrets.MAVEN_REPO_API_KEY }}
20+
21+
owasp-dependency-check:
22+
if: ${{ github.event_name != 'pull_request' }}
23+
uses: openmrs/openmrs-contrib-gha-workflows/.github/workflows/owasp-dependency-check.yml@main
24+
secrets:
25+
NVD_API_KEY: ${{ secrets.NVD_API_KEY }}
26+
BOT_GH_TOKEN: ${{ secrets.OMRS_BOT_GH_TOKEN }}

.github/workflows/maven.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
release_version:
7+
description: 'Release version (e.g., 1.3.3)'
8+
required: true
9+
development_version:
10+
description: 'Next development version (e.g., 1.4.0-SNAPSHOT)'
11+
required: true
12+
branch:
13+
description: 'Branch to release from (e.g., master)'
14+
required: false
15+
default: 'master'
16+
17+
jobs:
18+
release:
19+
uses: openmrs/openmrs-contrib-gha-workflows/.github/workflows/release-backend-module.yml@main
20+
permissions:
21+
contents: write
22+
with:
23+
release_version: ${{ inputs.release_version }}
24+
development_version: ${{ inputs.development_version }}
25+
branch: ${{ inputs.branch }}
26+
java_version: '8'
27+
secrets:
28+
MAVEN_REPO_USERNAME: ${{ secrets.MAVEN_REPO_USERNAME }}
29+
MAVEN_REPO_API_KEY: ${{ secrets.MAVEN_REPO_API_KEY }}
30+
BOT_PAT: ${{ secrets.BOT_PAT }}

0 commit comments

Comments
 (0)