Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .github/workflows/Publish to PyPI
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Publish to PyPI

on:
push:
tags:
- 'v*'

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine wheel setuptools

- name: Build distribution
run: |
python -m build

- name: Publish to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
twine upload dist/*

- name: Create Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets. GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github. ref }}
body: |
## Release Notes

This package is now available on PyPI!

Install with:
```bash
pip install tinder-api-wrapper
```
draft: false
prerelease: false