Skip to content

Commit

Permalink
ci: Build and publish with GitHub Actions (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon authored Jan 7, 2025
1 parent 778e4b6 commit ca720b8
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 15 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build and Publish Python Package

on:
push:

permissions:
contents: write
id-token: write

jobs:
build:
name: Build wheel and sdist
runs-on: ubuntu-latest
outputs:
version: ${{ steps.baipp.outputs.package_version }}
steps:
- uses: actions/checkout@v4
- uses: hynek/build-and-inspect-python-package@v2
id: baipp

publish:
name: Publish to PyPI
runs-on: ubuntu-latest
needs: [build]
environment:
name: pypi
url: https://pypi.org/project/meltanolabs-tap-github/${{ needs.build.outputs.version }}
if: startsWith(github.ref, 'refs/tags/')

steps:
- uses: actions/download-artifact@v4
with:
name: Packages
path: dist
- name: Upload wheel to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/*.whl
tag: ${{ github.ref }}
overwrite: true
file_glob: true
- name: Deploy to PyPI
uses: pypa/[email protected]
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 19 additions & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
[tool.poetry]
name = "tap-github"
version = "1.9.0"
description = "`tap-github` is Singer tap for GitHub, built with the Singer SDK."
authors = ["Meltano and Meltano Community"]
version = "1.10.0"
description = "Singer tap for GitHub, built with the Singer SDK."
authors = ["Meltano and Meltano Community <[email protected]>"]
maintainers = [
"Meltano and Meltano Community <[email protected]>",
"Edgar Ramírez-Mondragón <[email protected]>",
]
homepage = "https://github.com/MeltanoLabs/tap-github"
repository = "https://github.com/MeltanoLabs/tap-github"
license = "Apache-2.0"
keywords = ["Meltano", "Singer", "Meltano SDK", "Singer SDK", "ELT", "Github"]
readme = "README.md"
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
Expand Down Expand Up @@ -34,7 +39,7 @@ requests = "~=2.32.3"
# singer-sdk = {path = "../singer-sdk", develop = true}
singer-sdk = "~=0.43.1"

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
pytest = ">=7.3.1"
requests-cache = ">=1.0.1"
types-beautifulsoup4 = ">=4.12.0"
Expand Down Expand Up @@ -66,16 +71,16 @@ target-version = "py39"
[tool.ruff.lint]
ignore = []
select = [
"F", # Pyflakes
"E", # pycodestyle (errors)
"W", # pycodestyle (warnings)
"I", # isort
"UP", # pyupgrade
"DTZ", # flake8-datetimez
"FA", # flake8-future-annotations
"SIM", # flake8-simplify
"TC", # flake8-type-checking
"F", # Pyflakes
"E", # pycodestyle (errors)
"W", # pycodestyle (warnings)
"I", # isort
"UP", # pyupgrade
"DTZ", # flake8-datetimez
"FA", # flake8-future-annotations
"SIM", # flake8-simplify
"TC", # flake8-type-checking
"PERF", # Perflint
"FURB", # refurb
"RUF", # Ruff-specific rules
"RUF", # Ruff-specific rules
]

0 comments on commit ca720b8

Please sign in to comment.