Skip to content

Commit 648606f

Browse files
committed
Testing create-release.yml
1 parent 620151b commit 648606f

5 files changed

Lines changed: 31 additions & 14 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Create Release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
RELEASE_VERSION:
7+
description: 'Release version (e.g. 6.0.1-7)'
8+
required: true
9+
NEXT_DEV_VERSION:
10+
description: 'Next development version (e.g. 6.0.1-8-SNAPSHOT)'
11+
required: true
12+
13+
jobs:
14+
job:
15+
runs-on: ubuntu-latest
16+
permissions:
17+
contents: write
18+
19+
steps:
20+
- name: Init the github-actions repo
21+
uses: SerhatG/github-actions/init@release_dispatch
22+
23+
- uses: ./aerius-github-actions/extras/maven-release-action
24+
with:
25+
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
26+
RELEASE_VERSION: ${{ github.event.inputs.RELEASE_VERSION }}
27+
NEXT_DEV_VERSION: ${{ github.event.inputs.NEXT_DEV_VERSION }}

‎.github/workflows/on-pull_request-opened-synchronize-reopened.yml‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,12 @@ jobs:
1010

1111
steps:
1212
- name: Init the github-actions repo
13-
uses: SerhatG/github-actions/init@improvements
13+
uses: SerhatG/github-actions/init@release_dispatch
1414

1515
- uses: ./aerius-github-actions/events/pull_request-event-action
16-
with:
17-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18-
# ROOT_POM_DIRECTORY: repo/source
1916

2017
- uses: ./aerius-github-actions/extras/docker-build-action
2118
with:
22-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2319
DOCKER_IMAGE_NAME: ${{ github.event.repository.name }}
2420
DOCKER_WORK_DIRECTORY: repo/src
2521
DOCKER_BUILD_PLATFORMS: linux/amd64,linux/arm64

‎.github/workflows/on-push.yml‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,16 @@ jobs:
99

1010
steps:
1111
- name: Init the github-actions repo
12-
uses: SerhatG/github-actions/init@improvements
12+
uses: SerhatG/github-actions/init@release_dispatch
1313

1414
- uses: ./aerius-github-actions/events/push-event-action
1515
with:
16-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1716
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
1817
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
1918
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
20-
# ROOT_POM_DIRECTORY: repo/source
2119

2220
- uses: ./aerius-github-actions/extras/docker-build-or-publish-based-on-maven-project-version-action
2321
with:
24-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2522
DOCKER_REGISTRY_USERNAME: ${{ secrets.NEXUS_USERNAME }}
2623
DOCKER_REGISTRY_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
2724
DOCKER_IMAGE_NAME: ${{ github.event.repository.name }}

‎.github/workflows/on-release-published.yml‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,16 @@ jobs:
1010

1111
steps:
1212
- name: Init the github-actions repo
13-
uses: SerhatG/github-actions/init@improvements
13+
uses: SerhatG/github-actions/init@release_dispatch
1414

1515
- uses: ./aerius-github-actions/events/release-event-action
1616
with:
17-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1817
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
1918
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
2019
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
21-
# ROOT_POM_DIRECTORY: repo/source
2220

2321
- uses: ./aerius-github-actions/extras/docker-publish-action
2422
with:
25-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2623
DOCKER_REGISTRY_USERNAME: ${{ secrets.NEXUS_USERNAME }}
2724
DOCKER_REGISTRY_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
2825
DOCKER_IMAGE_NAME: ${{ github.event.repository.name }}

‎pom.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
<groupId>nl.aerius</groupId>
2323
<artifactId>github-actions-test</artifactId>
24-
<version>1.0.0</version>
24+
<version>1.0.1-SNAPSHOT</version>
2525

2626
<name>github-actions-test</name>
2727

0 commit comments

Comments
 (0)