Skip to content

Commit

Permalink
Add workflow to publish a release.
Browse files Browse the repository at this point in the history
  • Loading branch information
plypaul committed Feb 26, 2024
1 parent 921a786 commit f202b2e
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/cd-push-to-pypi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish `dbt-semantic-interfaces` Release
on:
workflow_dispatch:
push:
tags:
- "*"

env:
PYTHON_VERSION: "3.8"

jobs:
pypi-publish:
runs-on: ubuntu-latest
environment: PYPI_PUBLISH
steps:
- name: Check-out the repo
uses: actions/checkout@v3

- name: Setup Python ${{ env.PYTHON_VERSION }} Environment
uses: ./.github/actions/setup-python-env
with:
python-version: "${{ env.PYTHON_VERSION }}"

- name: Hatch Publish
run: hatch build && hatch publish
env:
HATCH_INDEX_USER: __token__
HATCH_INDEX_AUTH: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit f202b2e

Please sign in to comment.