diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml deleted file mode 100644 index e1b806ccf074..000000000000 --- a/.github/workflows/create-release.yml +++ /dev/null @@ -1,64 +0,0 @@ -name: Create Release -on: - workflow_dispatch: - inputs: - version: - description: "Version to release" - required: true - type: string - release_type: - description: "Type of release (base or main)" - required: true - type: choice - options: - - base - - main - -env: - POETRY_VERSION: "1.8.2" -jobs: - release: - name: Build Langflow - runs-on: ubuntu-latest - outputs: - version: ${{ steps.check-version.outputs.version }} - steps: - - uses: actions/checkout@v4 - - name: Install poetry - run: pipx install poetry==${{ env.POETRY_VERSION }} - - name: Set up Python 3.12 - uses: actions/setup-python@v5 - with: - python-version: "3.12" - cache: "poetry" - - name: Build project for distribution - run: | - if [ "${{ inputs.release_type }}" == "base" ]; then - make build base=true - else - make build main=true - fi - - name: Upload Artifact - uses: actions/upload-artifact@v4 - with: - name: dist${{ inputs.release_type }} - path: ${{ inputs.release_type == 'base' && 'src/backend/base/dist' || 'dist' }} - create_release: - name: Create Release Job - runs-on: ubuntu-latest - needs: release - steps: - - uses: actions/download-artifact@v4 - with: - name: dist${{ inputs.release_type }} - path: dist - - name: Create Release Notes - uses: ncipollo/release-action@v1 - with: - artifacts: "dist/*" - token: ${{ secrets.GITHUB_TOKEN }} - draft: false - generateReleaseNotes: true - prerelease: true - tag: v${{ inputs.version }} - commit: dev diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e9bc679476fb..61a3e2dee79c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -68,7 +68,7 @@ jobs: - name: Check Version id: check-version run: | - version=$(uv tree | grep 'langflow-base' | awk '{print $3}') + version=$(uv tree | grep 'langflow-base' | awk '{print $3}' | sed 's/^v//') last_released_version=$(curl -s "https://pypi.org/pypi/langflow-base/json" | jq -r '.releases | keys | .[]' | sort -V | tail -n 1) if [ "$version" = "$last_released_version" ]; then echo "Version $version is already released. Skipping release."