-
Notifications
You must be signed in to change notification settings - Fork 19
62 lines (57 loc) · 2.19 KB
/
release.yml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Release
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 13
uses: actions/setup-java@v1
with:
java-version: 13
- name: Build with Maven
run: mvn clean package --file pom.xml -s settings.xml -P build-executable
env:
SECRET_ACTOR: ${{ secrets.SECRET_ACTOR }}
SECRET_TOKEN: ${{ secrets.SECRET_TOKEN }}
- name: Build with Ant
run: ant dist -noinput -buildfile build.xml
- name: Create a Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
# The name of the tag. This should come from the webhook payload, `github.GITHUB_REF` when a user pushes a new tag
tag_name: ${{ github.ref }}
# The name of the release. For example, `Release v1.0.1`
release_name: Release ${{ github.ref }}
# Text describing the contents of the tag.
body: Draft Release Autonomously Generated By CI
# `true` to create a draft (unpublished) release, `false` to create a published one. Default: `false`
draft: false # optional
# `true` to identify the release as a prerelease. `false` to identify the release as a full release. Default: `false`
prerelease: false # optional
- name: Upload Main Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./MedTagger.zip
asset_name: MedTagger.zip
asset_content_type: application/zip
- name: Upload Backbone Release Asset
id: upload-backbone-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./MedTaggerForBackbone.zip
asset_name: MedTaggerForBackbone.zip
asset_content_type: application/zip