Skip to content

Commit 3d46d0e

Browse files
authored
[github-actions] Add create-release job (#8)
Also done some cleanup associated with this.
1 parent 6e7bba0 commit 3d46d0e

4 files changed

Lines changed: 36 additions & 9 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. 1.0.0)'
8+
required: true
9+
NEXT_DEV_VERSION:
10+
description: 'Next development version (e.g. 1.0.1-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: aerius/github-actions/init@v1.1
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 }}
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
name: push-event
1+
name: code-push
22

33
on:
44
push:
5+
branches:
6+
- 'main'
7+
- '**_fixes'
58

69
jobs:
710
job:
@@ -13,7 +16,6 @@ jobs:
1316

1417
- uses: ./aerius-github-actions/events/push-event-action
1518
with:
16-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1719
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
1820
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
1921
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} // left out for now
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
name: release-published-event
1+
name: new-tag
22

33
on:
4-
release:
5-
types: [published]
4+
push:
5+
tags:
6+
- '**'
67

78
jobs:
89
job:
@@ -14,7 +15,6 @@ jobs:
1415

1516
- uses: ./aerius-github-actions/events/release-event-action
1617
with:
17-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1818
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
1919
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
2020
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} left out for now

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: pull_request-opened-synchronize-reopened-event
1+
name: pull_request-opened-synchronize-reopened
22

33
on:
44
pull_request:
@@ -13,5 +13,3 @@ jobs:
1313
uses: aerius/github-actions/init@v1.1
1414

1515
- uses: ./aerius-github-actions/events/pull_request-event-action
16-
with:
17-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)