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