Skip to content

Commit 54b6ff7

Browse files
authored
Add release workflows (#5)
* Add release workflows * Fix deployment repository
1 parent a7a4c6a commit 54b6ff7

File tree

3 files changed

+49
-1
lines changed

3 files changed

+49
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ jobs:
117117
working-directory: java
118118

119119
- name: Publish
120-
run: mvn -T 1.5C -B deploy
120+
run: mvn -T 1.5C -B deploy -DaltDeploymentRepository=set-github::https://maven.pkg.github.com/${{ github.repository }}
121121
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/')
122122
working-directory: java
123123
env:
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Create Release Branch
2+
run-name: Create Release Branch ${{ inputs.version }} ${{ inputs.citag }}
3+
4+
on:
5+
workflow_dispatch:
6+
inputs:
7+
version:
8+
description: 'Release version. Format: <major>.<minor>'
9+
required: true
10+
citag:
11+
description: 'Optional tag to identify runs via the API. Displayed in run name.'
12+
required: false
13+
default: ''
14+
15+
16+
jobs:
17+
release-branch:
18+
uses: eclipse-set/build/.github/workflows/release-branch.yml@main
19+
permissions:
20+
contents: write
21+
with:
22+
version: ${{ inputs.version }}
23+
target: "java/org.eclipse.set.browser.releng.target/org.eclipse.set.browser.releng.target.target"
24+
pom: java/pom.xml
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Create Release Tag
2+
run-name: Create Release Tag ${{ inputs.version }} ${{ inputs.citag }}
3+
4+
on:
5+
workflow_dispatch:
6+
inputs:
7+
version:
8+
description: 'Release version. Format: <major>.<minor>.<patch>(.<tag>)'
9+
required: true
10+
citag:
11+
description: 'Optional tag to identify runs via the API. Displayed in run name.'
12+
required: false
13+
default: ''
14+
15+
16+
jobs:
17+
release-tag:
18+
uses: eclipse-set/build/.github/workflows/release-tag.yml@main
19+
permissions:
20+
contents: write
21+
with:
22+
version: ${{ inputs.version }}
23+
target: "java/org.eclipse.set.browser.releng.target/org.eclipse.set.browser.releng.target.target"
24+
pom: java/pom.xml

0 commit comments

Comments
 (0)