From 6250dc0607b73758bfdd6e7af0ab7b2f81609b83 Mon Sep 17 00:00:00 2001 From: LunaStev <96914208+LunaStev@users.noreply.github.com> Date: Tue, 8 Oct 2024 12:50:20 +0900 Subject: [PATCH] workflow.yml --- .github/workflows/workflow.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/workflow.yml diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml new file mode 100644 index 0000000..d0b87a8 --- /dev/null +++ b/.github/workflows/workflow.yml @@ -0,0 +1,34 @@ +name: Publish WSON Package + +on: + push: + branches: + - master # 또는 여러분이 사용하는 기본 브랜치 이름 + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.8' # 사용할 파이썬 버전 + + - name: Install dependencies + run: | + pip install setuptools wheel twine + + - name: Build package + run: | + python setup.py sdist bdist_wheel + + - name: Upload to PyPI + run: | + twine upload dist/* + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}