Skip to content

Commit

Permalink
[add] add github build stable
Browse files Browse the repository at this point in the history
  • Loading branch information
yzqin committed Feb 16, 2024
1 parent 30eb81e commit ecb1c8c
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/build_stable.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ecb1c8c

Please sign in to comment.