-
Notifications
You must be signed in to change notification settings - Fork 3.1k
68 lines (60 loc) · 1.94 KB
/
azureml-release-pipeline.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
62
63
64
65
66
67
68
# Copyright (c) Recommenders contributors.
# Licensed under the MIT License.
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- '0.*' # Push events to matching 0.*, 1.*
- '1.*'
name: Create GitHub Draft Release
jobs:
unit-test-workflow:
uses: ./.github/workflows/azureml-unit-tests.yml
secrets: inherit
cpu-nightly-workflow:
uses: ./.github/workflows/azureml-cpu-nightly.yml
secrets: inherit
gpu-nightly-workflow:
uses: ./.github/workflows/azureml-gpu-nightly.yml
secrets: inherit
spark-nightly-workflow:
uses: ./.github/workflows/azureml-spark-nightly.yml
secrets: inherit
create-release:
runs-on: ubuntu-latest
needs: [unit-test-workflow, cpu-nightly-workflow, gpu-nightly-workflow, spark-nightly-workflow]
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: "3.8"
- name: Install wheel package
run: pip install wheel
- name: Create wheel from setup.py
run: python setup.py bdist_wheel
- name: Create tar gz from setup.py
run: python setup.py sdist
- name: Create GitHub Draft Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Recommenders ${{ github.ref }}
body: |
Changes in this Release
- First Change
- Second Change
draft: true
prerelease: false
- name: Upload .whl and .tar.gz files as Release Assets
id: upload-release-assets
uses: dwenegar/upload-release-assets@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release_id: ${{ steps.create_release.outputs.id }}
assets_path: dist