From 775bdfe7e36c95936363dcf79237f3f2a4e07332 Mon Sep 17 00:00:00 2001 From: HansBug Date: Thu, 27 Jan 2022 12:56:05 +0800 Subject: [PATCH] test(hansbug): add dist upload --- .github/workflows/test.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6190ec56cf..36dded4684 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -154,4 +154,13 @@ jobs: - name: Build packages run: | make package - ls -al dist \ No newline at end of file + ls -al dist + - name: Get package version + run: | + make build + python -c 'from treevalue.config.meta import __VERSION__;print(__VERSION__)' + echo "PACKAGE_VERSION=$(python -c 'from treevalue.config.meta import __VERSION__;print(__VERSION__)')" >> $GITHUB_ENV + - uses: actions/upload-artifact@v2 + with: + name: treevalue-v${{ env.PACKAGE_VERSION }}-${{ matrix.os }}-${{ matrix.python-version }} + path: dist -- GitLab