forked from repo-mirrors/sqlfluff
36 lines
955 B
YAML
36 lines
955 B
YAML
name: Publish dbt templater PyPI Version
|
|
|
|
on:
|
|
release:
|
|
types:
|
|
- published
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
run:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-python@v4
|
|
with:
|
|
python-version: "3.10"
|
|
|
|
- name: Install Dependencies
|
|
run: |
|
|
pip install --upgrade pip tox
|
|
|
|
- name: Build Distribution (dbt plugin)
|
|
# tox commands run relative to the repo root.
|
|
run: tox -e build-dist -- plugins/sqlfluff-templater-dbt
|
|
|
|
- name: Copy builds to main dist folder
|
|
# We move them here so that the github action can still access them
|
|
run: cp -r plugins/sqlfluff-templater-dbt/dist/. dist/
|
|
|
|
- name: Publish Python distribution to PyPI
|
|
uses: pypa/gh-action-pypi-publish@release/v1
|
|
with:
|
|
user: __token__
|
|
password: ${{ secrets.PYPI_DBT_TEMPLATER_TOKEN }}
|
|
skip_existing: true
|