Skip to content

Commit

Permalink
Merge branch 'Tetris_Domino_Le'
Browse files Browse the repository at this point in the history
  • Loading branch information
chenle02 committed Jan 31, 2024
2 parents e7c0e90 + 3613c6a commit e8fbe63
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish Python Package to PyPI

on:
push:
tags:
- '*'

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and check the package
run: |
python setup.py sdist bdist_wheel
twine check dist/*
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@v1.4.2
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit e8fbe63

Please sign in to comment.