diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6190ec56cfa79dc6092b39d3ed67ad38d688739a..36dded4684b599a7aef94e8c040698aafa368a2f 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