Skip to content

Commit

Permalink
ci: Added build file for automatic building whl
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeusina committed Feb 13, 2024
1 parent 37c6698 commit d1dbd68
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/build/build.yaml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit d1dbd68

Please sign in to comment.