-
Notifications
You must be signed in to change notification settings - Fork 8
42 lines (41 loc) · 1.36 KB
/
add-release-archive.yaml
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
# Add a zip built for new ES-version to existing release
name: Add release archive
on:
workflow_dispatch:
inputs:
# TODO: detect this automatically from tag name
releaseId:
required: true
type: string
description: "Id of the release to update"
releaseVersion:
required: true
type: string
description: "Release version to checkout"
elasticsearchVersion:
required: true
type: string
description: "Version of target Elasticsearch"
# version: ${{ github.event.inputs.version }}
jobs:
# TODO: duplication from build.yaml
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: v${{ github.event.inputs.releaseVersion }}
- uses: actions/setup-java@v1
with:
java-version: 8
- uses: gradle/wrapper-validation-action@v1
- uses: gradle/gradle-build-action@v2
with:
arguments: build -DbaseVersion=${{ github.event.inputs.releaseVersion }} -DelasticsearchVersion=${{ github.event.inputs.elasticsearchVersion }}
- name: Upload the artifacts
uses: skx/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
releaseId: ${{ github.event.inputs.releaseId }}
args: 'build/distributions/*.zip'