Update ISSUE_TEMPLATE.md #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Python Package | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
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.12' | |
- name: Install latest version of build | |
run: pip install --upgrade build | |
- name: Build package | |
run: python -m build | |
- name: Install twine | |
run: pip install --upgrade twine | |
- name: Publish to PYPI | |
env: | |
TWINE_USERNAME: __token__ | |
TWINE_PASSWORD: ${{ secrets.CALENDAR_WIDGET_TOKEN }} | |
run: twine upload --repository-url https://upload.pypi.org/legacy/ dist/* --skip-existing |