Skip to content

Commit

Permalink
ci: added ci file for automatic build whl
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeusina committed Feb 13, 2024
1 parent 95e1153 commit f932f37
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: 'Build'

on:
push:
branches:
- master


jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: "Set up python"
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: "Prepare dependencies"
shell: bash
run: |
python3 -m pip install wheel setuptools
- 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 f932f37

Please sign in to comment.