From ecb1c8caa41432ccc1d1b8415895fb7ae317dc4f Mon Sep 17 00:00:00 2001 From: yzqin Date: Thu, 15 Feb 2024 19:39:41 -0800 Subject: [PATCH] [add] add github build stable --- .github/workflows/build_stable.yml | 41 ++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/build_stable.yml diff --git a/.github/workflows/build_stable.yml b/.github/workflows/build_stable.yml new file mode 100644 index 0000000..64317bf --- /dev/null +++ b/.github/workflows/build_stable.yml @@ -0,0 +1,41 @@ +name: tagged release + +on: + push: + tags: + - "v*" + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [ "3.8" ] + + environment: + name: pypi + url: https://pypi.org/manage/project/dex-retargeting + permissions: + id-token: write + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Build wheels + run: pip3 install setuptools build --upgrade && python -m build -w + + - name: Upload wheels + uses: actions/upload-artifact@v3 + with: + name: wheels + path: ./dist/*.whl + + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file