forked from vectorch-ai/ScaleLLM
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (54 loc) · 1.51 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:
# Release scalellm on creation of tags to https://hub.docker.com/r/vectorchai/scalellm
# Push events to matching v*, i.e. v1.0.0, v1.0.0-rc1, v20.15.10-rc5, etc.
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+*
jobs:
# extract version from tag
version-tag:
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.version.outputs.tag }}
steps:
- name: Extract version from tag
id: version
run: echo "tag=$(echo ${{ github.ref }} | sed -n 's/refs\/tags\///p')" >> $GITHUB_OUTPUT
# Run tests on release
release-test:
uses: ./.github/workflows/release_test.yml
secrets: inherit
# build wheel for release if tests pass
build-wheel:
uses: ./.github/workflows/build_wheel.yml
with:
tag: ${{ needs.version-tag.outputs.tag }}
secrets: inherit
needs:
- version-tag
- release-test
# publish wheel to pypi if wheel builds successfully
publish-wheel:
uses: ./.github/workflows/publish_wheel.yml
with:
tag: ${{ needs.version-tag.outputs.tag }}
secrets: inherit
needs:
- version-tag
- build-wheel
# publish docker image to dockerhub
publish-cpp-image:
uses: ./.github/workflows/publish_cpp_image.yml
with:
tag: ${{ needs.version-tag.outputs.tag }}
secrets: inherit
needs:
- version-tag
- publish-wheel
# publish docs to gh-pages for new release
publish_docs:
uses: ./.github/workflows/publish_docs.yml
secrets: inherit
needs:
- publish-wheel