-
Notifications
You must be signed in to change notification settings - Fork 4
executable file
·46 lines (45 loc) · 1.36 KB
/
release.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
43
44
45
46
name: Release new version
on:
push:
branches: ['*']
tags: [v*]
jobs:
release-package:
runs-on: ubuntu-latest
steps:
- name: Cancel previous runs
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Git repository
uses: actions/checkout@v2
- name: Publish
if: startsWith(github.ref, 'refs/tags/v')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: >
./sbtwrapper prinz/publish &&
./sbtwrapper prinz_util/publish &&
./sbtwrapper prinz_proxy/publish &&
./sbtwrapper prinz_mlflow/publish &&
./sbtwrapper prinz_pmml/publish &&
./sbtwrapper prinz_h2o/publish
release-gh:
runs-on: ubuntu-latest
steps:
- name: Cancel previous runs
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Git repository
uses: actions/checkout@v2
- name: Create Release
if: startsWith(github.ref, 'refs/tags/v')
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Prinz Release ${{ github.ref }}
draft: false
prerelease: false