forked from kubeflow/pipelines
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (41 loc) · 1.36 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
name: Release
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+*"
permissions:
contents: write
packages: write
jobs:
build_kfp_images:
name: Build Kubeflow Pipelines Images
uses: ./.github/workflows/build_kfp_images_TEMPLATE.yml
secrets: inherit
with:
image_name_prefix: ghcr.io/${{ github.repository_owner }}/kubeflow-pipelines
build_platforms: linux/amd64
build_cache_prefix: ghcr.io/${{ github.repository_owner }}/ci/kubeflow-pipelines
tag_with_latest: false
tag_with_semver: true
login_to_ghcr: true
create_release:
runs-on: ubuntu-latest
needs: [ build_kfp_images ]
steps:
- name: Create GitHub Release
uses: actions/github-script@v7
with:
script: |
const { repo: { owner, repo }, ref: tag_ref } = context;
const tag_name = tag_ref.replace('refs/tags/', '');
const tag_version = tag_ref.replace('refs/tags/v', '');
// Create a release
const response = await github.rest.repos.createRelease({
owner: owner,
repo: repo,
tag_name: tag_name,
name: `Kubeflow Pipelines - ${tag_version}`,
draft: false,
// NOTE: for this repo, we always have '-patch.X' in the tag name
//prerelease: tag_name.includes('-'),
});