Skip to content

Commit e29c788

Browse files
committed
ci(release): call the shared test and publish workflows
1 parent 9007dfd commit e29c788

3 files changed

Lines changed: 42 additions & 40 deletions

File tree

‎.github/workflows/build.yml‎

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

‎.github/workflows/publish-dependency.yml‎

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

‎.github/workflows/release.yml‎

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
tag:
7+
description: 'Tag to build and publish; empty takes the ref the run was started from'
8+
required: false
9+
type: string
10+
default: ''
11+
push:
12+
tags:
13+
- '*'
14+
15+
permissions:
16+
contents: write
17+
packages: write
18+
19+
jobs:
20+
test:
21+
uses: intisy/workflows/.github/workflows/test.yml@main
22+
with:
23+
ref: ${{ inputs.tag }}
24+
java_version: '11'
25+
runners: '["ubuntu-latest", "macos-latest", "windows-latest"]'
26+
gradle_test: ciTest
27+
gradle_args: --no-daemon --info
28+
secrets:
29+
envPAT: ${{ secrets.PAT }}
30+
31+
publish:
32+
needs: test
33+
uses: intisy/workflows/.github/workflows/publish.yml@main
34+
with:
35+
tag: ${{ inputs.tag }}
36+
# maven is not detectable here: the maven-publish plugin arrives through a remote preset
37+
# fetched at build time, so nothing in the checked-in build script names it.
38+
targets: 'github-gradle maven'
39+
java_version: '8'
40+
publish_task: publishGithub
41+
secrets:
42+
envPAT: ${{ secrets.PAT }}

0 commit comments

Comments
 (0)