Skip to content

Commit

Permalink
Fix flyteidl release (#4278)
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com>
Co-authored-by: Eduardo Apolinario <eapolinario@users.noreply.github.com>
  • Loading branch information
eapolinario and eapolinario authored Oct 23, 2023
1 parent 070e220 commit 2516bfa
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/flyteidl-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types: [created]

jobs:
deploy:
deploy-to-pypi:
runs-on: ubuntu-latest
defaults:
run:
Expand All @@ -20,11 +20,11 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Autobump version
- name: Set version in python package
run: |
# from refs/tags/v1.2.3 get 1.2.3
VERSION=$(echo $GITHUB_REF | sed 's#.*/v##')
VERSION=$VERSION make -C flyteidl update_pyversion
VERSION=$VERSION make update_pyversion
shell: bash
- name: Build and publish
env:
Expand All @@ -33,11 +33,17 @@ jobs:
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
deploy-to-npm:
runs-on: ubuntu-latest
defaults:
run:
working-directory: flyteidl
steps:
- uses: actions/setup-node@v1
with:
node-version: "12.x"
registry-url: "https://registry.npmjs.org"
- name: Autobump version
- name: Set version in npm package
run: |
# from refs/tags/v1.2.3 get 1.2.3
VERSION=$(echo $GITHUB_REF | sed 's#.*/v##')
Expand Down

0 comments on commit 2516bfa

Please sign in to comment.