Skip to content

Commit

Permalink
PyPi Publish (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomme authored Aug 8, 2022
1 parent b641dad commit c704ef7
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Upload Python Package

on:
release:
types: [published]

permissions:
contents: read

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@

### Installation

`pip install git+https://github.com/Tomme/dbt-athena.git`
* `pip install dbt-athena-adapter`
* Or `pip install git+https://github.com/Tomme/dbt-athena.git`

### Prerequisites

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
long_description = f.read()


package_name = "dbt-athena"
package_name = "dbt-athena-adapter"


# get this from a separate file
Expand Down

0 comments on commit c704ef7

Please sign in to comment.