Skip to content

Commit

Permalink
Chore: refactor publish workflow for sqlglotrs releasing
Browse files Browse the repository at this point in the history
  • Loading branch information
georgesittas committed May 4, 2024
1 parent 19dde50 commit 5125732
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,10 @@ jobs:
- uses: actions/checkout@v3
- id: check_deploy
name: Check if sqlglotrs should be deployed
run: |
bash ./.github/workflows/should_deploy_sqlglotrs.sh
if [ $? -eq 0 ]; then echo "deploy=true"; else echo "deploy=false"; fi >> "$GITHUB_OUTPUT"
run: bash ./.github/workflows/should_deploy_sqlglotrs.sh

build-rs:
needs: should-deploy-rs
if: ${{ needs.should-deploy-rs.outputs.deploy == 'true' }}
strategy:
matrix:
os: [linux, macos, windows]
Expand Down Expand Up @@ -66,7 +63,6 @@ jobs:

sdist-rs:
needs: should-deploy-rs
if: ${{ needs.should-deploy-rs.outputs.deploy == 'true' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -84,7 +80,6 @@ jobs:

deploy-rs:
needs: [should-deploy-rs, build-rs, sdist-rs]
if: ${{ needs.should-deploy-rs.outputs.deploy == 'true' }}
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
Expand Down

0 comments on commit 5125732

Please sign in to comment.