Scrapegraph-ai/.github/workflows/release.yml
Marco Vinciguerra aa7a7e2dae
Pre/beta (#835)
* fix: error on fetching the code

* feat: revert search function

* feat: add api integration

* ci(release): 1.32.0-beta.1 [skip ci]

## [1.32.0-beta.1](https://github.com/ScrapeGraphAI/Scrapegraph-ai/compare/v1.31.1...v1.32.0-beta.1) (2024-11-24)

### Features

* revert search function ([faf0c01](faf0c0123b))

* fix: improved links extraction for parse_node, resolves #822

* ci(release): 1.32.0-beta.2 [skip ci]

## [1.32.0-beta.2](https://github.com/ScrapeGraphAI/Scrapegraph-ai/compare/v1.32.0-beta.1...v1.32.0-beta.2) (2024-11-25)

### Bug Fixes

* error on fetching the code ([7285ab0](7285ab065b))

* ci(release): 1.32.0-beta.3 [skip ci]

## [1.32.0-beta.3](https://github.com/ScrapeGraphAI/Scrapegraph-ai/compare/v1.32.0-beta.2...v1.32.0-beta.3) (2024-11-26)

### Bug Fixes

* improved links extraction for parse_node, resolves [#822](https://github.com/ScrapeGraphAI/Scrapegraph-ai/issues/822) ([7da7bfe](7da7bfe338))

* chore: migrate from rye to uv

* feat: add sdk integration

* ci(release): 1.32.0-beta.4 [skip ci]

## [1.32.0-beta.4](https://github.com/ScrapeGraphAI/Scrapegraph-ai/compare/v1.32.0-beta.3...v1.32.0-beta.4) (2024-12-02)

### Features

* add api integration ([8aa9103](8aa9103f02))
* add sdk integration ([209b445](209b4456fd))

### chore

* migrate from rye to uv ([5fe528a](5fe528a7e7))

---------

Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
Co-authored-by: Michele_Zenoni <michelezenoni1@gmail.com>
Co-authored-by: Federico Aguzzi <62149513+f-aguzzi@users.noreply.github.com>
2024-12-02 09:39:26 +01:00

77 lines
2.3 KiB
YAML

name: Release
on:
push:
branches:
- main
- pre/*
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Install git
run: |
sudo apt update
sudo apt install -y git
- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Install Node Env
uses: actions/setup-node@v4
with:
node-version: 20
- name: Checkout
uses: actions/checkout@v4.1.1
with:
fetch-depth: 0
persist-credentials: false
- name: Build app
run: |
uv sync --frozen
uv build
id: build_cache
if: success()
- name: Cache build
uses: actions/cache@v2
with:
path: ./dist
key: ${{ runner.os }}-build-${{ hashFiles('dist/**') }}
if: steps.build_cache.outputs.id != ''
release:
name: Release
runs-on: ubuntu-latest
needs: build
environment: development
if: |
github.event_name == 'push' && github.ref == 'refs/heads/main' ||
github.event_name == 'push' && github.ref == 'refs/heads/pre/beta' ||
github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged && github.event.pull_request.base.ref == 'main' ||
github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged && github.event.pull_request.base.ref == 'pre/beta'
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
steps:
- name: Checkout repo
uses: actions/checkout@v4.1.1
with:
fetch-depth: 0
persist-credentials: false
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4.1.0
with:
semantic_version: 23
extra_plugins: |
semantic-release-pypi@3
@semantic-release/git
@semantic-release/commit-analyzer@12
@semantic-release/release-notes-generator@13
@semantic-release/github@10
@semantic-release/changelog@6
conventional-changelog-conventionalcommits@7
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}