diff --git a/.github/workflows/flyteidl-release.yml b/.github/workflows/flyteidl-release.yml index ea8a7899fa..c69983ce05 100644 --- a/.github/workflows/flyteidl-release.yml +++ b/.github/workflows/flyteidl-release.yml @@ -5,7 +5,7 @@ on: types: [created] jobs: - deploy: + deploy-to-pypi: runs-on: ubuntu-latest defaults: run: @@ -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: @@ -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##')