From d1dbd684b7ae96d3ecf2022da7ce46aeb722eff3 Mon Sep 17 00:00:00 2001 From: Zeusina Date: Tue, 13 Feb 2024 18:16:14 +0300 Subject: [PATCH] ci: Added build file for automatic building whl --- .github/build/build.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/build/build.yaml diff --git a/.github/build/build.yaml b/.github/build/build.yaml new file mode 100644 index 0000000..d7ca9f0 --- /dev/null +++ b/.github/build/build.yaml @@ -0,0 +1,29 @@ +name: 'Build' + +on: + push: + - master + - basic_functions + + +jobs: + build: + runs-on: ubuntu:latest + steps: + - uses: actions/checkout@v2 + - name: "Set up pyhton" + uses: actions/setup-python@v4 + with: + python-version: 3.10 + - name: "Set version variable" + shell: bash + run: echo "WHL_VERSION=$(python setup.py --version)" >> $GITHUB_ENV + - name: "Build package" + shell: bash + run: | + python3 setup.py bdist_wheel + + - uses: actions/upload-artifact@v4 + with: + name: build + path: "dist/petersburgedu_wrap-${{ env.WHL_VERSION }}-py3-none-any.whl" \ No newline at end of file