Skip to content

Commit 93a7ad7

Browse files
author
yejunjin
authored
automate release when a new tag is pushed (#30)
1 parent 40cddfd commit 93a7ad7

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

.github/workflows/release_packages.yml

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
name: Release Packages
22

33
on:
4-
create:
4+
push:
55
tags:
66
- 'v[0-9]+.[0-9]+.[0-9]+'
77

8+
# Needed to create release and upload assets
9+
permissions:
10+
contents: write
11+
812
jobs:
913
build-deb:
1014
runs-on: [self-hosted, Linux, X64]
@@ -147,6 +151,36 @@ jobs:
147151
TAG_NAME=$(git describe --tags $(git rev-list --tags --max-count=1))
148152
VERSION_NUMBER=$(echo "$TAG_NAME" | sed 's/^v//')
149153
AS_RELEASE_VERSION=$VERSION_NUMBER bash scripts/release/python_manylinux_test.sh
154+
155+
publish:
156+
runs-on: [self-hosted, Linux]
157+
needs: [build-deb, build-rpm, test]
158+
strategy:
159+
matrix:
160+
arch: [X64, ARM64]
161+
steps:
162+
- name: Download deb packages
163+
uses: actions/download-artifact@v3
164+
with:
165+
name: dashinfer-deb
166+
path: release/
167+
168+
- name: Download rpm packages
169+
uses: actions/download-artifact@v3
170+
with:
171+
name: dashinfer-rpm-${{ matrix.arch }}
172+
path: release/
173+
174+
- name: Download python wheels
175+
uses: actions/download-artifact@v3
176+
with:
177+
name: python-manylinux-wheels-${{ matrix.arch }}
178+
path: release/
179+
180+
- name: Release all packages
181+
uses: softprops/action-gh-release@v2
182+
with:
183+
files: release/*
150184

151185

152186

0 commit comments

Comments
 (0)