Skip to content

publish

publish #36

Workflow file for this run

name: publish
on:
workflow_dispatch:
inputs:
version:
description: 'Version to be published'
required: true
type: string
environment:
type: choice
description: pypi environment
options:
- pypi-dev-rudder
- pypi-prod
jobs:
profiles-mlcorelib:
name: publish profiles-mlcorelib
runs-on: ubuntu-latest
env:
VERSION: ${{ inputs.version }}
GH_TOKEN: ${{ secrets.PAT }}
USER: ${{ secrets.USER }}
PASSWORD: ${{ secrets.PASSWORD }}
permissions:
id-token: write
environment:
name: ${{ inputs.environment }}
url: ${{ vars.URL }}/profiles-mlcorelib
steps:
- name: download
shell: bash
run: |
gh release download ${VERSION} --repo github.com/rudderlabs/rudderstack-profiles-classifier --pattern "profiles_mlcorelib_dist_${VERSION}.tar.gz" -O ./dist.tar.gz
tar -zxvf dist.tar.gz
- name: publish
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: ${{ vars.REPOSITORY_URL }}
user: ${{ env.USER || '__token__' }}
password: ${{ env.PASSWORD || '' }}