Skip to content

Commit

Permalink
Adding dagster plugin publisher workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
treff7es committed Mar 25, 2024
1 parent e72908e commit 0b6fd60
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/publish-dagster-plugin-pypi-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: pypi-release acryl-datahub-dagster-plugin
on:
workflow_dispatch:
release:
types: [published]

jobs:
setup:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.tag.outputs.tag }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Compute Tag
id: tag
run: |
echo "GITHUB_REF: $GITHUB_REF"
SHORT_SHA=$(git rev-parse --short "$GITHUB_SHA")
TAG=$(echo ${GITHUB_REF} | sed -e 's,refs/tags/v,,g')
echo "tag=$TAG" >> $GITHUB_OUTPUT
push_to_pypi:
name: Build and push python package to PyPI
runs-on: ubuntu-latest
needs: setup
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: 17
- uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine build
- name: Install dependencies
run: ./metadata-ingestion/scripts/install_deps.sh
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
RELEASE_SKIP_TEST: "true"
run: |
cd metadata-ingestion-modules/dagster-plugin
RELEASE_VERSION=${{ needs.setup.outputs.tag }} ./scripts/release.sh

0 comments on commit 0b6fd60

Please sign in to comment.