File tree Expand file tree Collapse file tree 2 files changed +14
-62
lines changed Expand file tree Collapse file tree 2 files changed +14
-62
lines changed Original file line number Diff line number Diff line change @@ -14,52 +14,40 @@ jobs:
1414 run : |
1515 sudo apt update
1616 sudo apt install -y git
17-
18- - name : Set up Python
19- uses : actions/setup-python@v5
20- with :
21- python-version : ' 3.10'
22-
2317 - name : Install uv
2418 uses : astral-sh/setup-uv@v3
25-
2619 - name : Install Node Env
2720 uses : actions/setup-node@v4
2821 with :
2922 node-version : 20
30-
3123 - name : Checkout
32243325 with :
3426 fetch-depth : 0
3527 persist-credentials : false
36-
37- - name : Install dependencies and build package
28+ - name : Build app
3829 run : |
39- uv venv
40- . .venv/bin/activate
41- uv pip install twine
4230 uv sync --frozen
43- uv pip install -e .
4431 uv build
45-
46- - name : Cache build artifacts
47- uses : actions/cache@v3
32+ id : build_cache
33+ if : success()
34+ - name : Cache build
35+ uses : actions/cache@v2
4836 with :
49- path : |
50- ./dist
51- ./build
52- key : ${{ runner.os }}-build-${{ github.sha }}
37+ path : ./dist
38+ key : ${{ runner.os }}-build-${{ hashFiles('dist/**') }}
39+ if : steps.build_cache.outputs.id != ''
5340
5441 release :
5542 name : Release
5643 runs-on : ubuntu-latest
5744 needs : build
5845 environment : development
59- if : |
60- github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/pre/')) ||
61- github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged &&
62- (github.event.pull_request.base.ref == 'main' || startsWith(github.event.pull_request.base.ref, 'pre/'))
46+ if : |
47+ github.event_name == 'push' && github.ref == 'refs/heads/main' ||
48+ github.event_name == 'push' && github.ref == 'refs/heads/pre/beta' ||
49+ github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged && github.event.pull_request.base.ref == 'main' ||
50+ github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged && github.event.pull_request.base.ref == 'pre/beta'
6351 permissions :
6452 contents : write
6553 issues : write
7159 with :
7260 fetch-depth : 0
7361 persist-credentials : false
74-
75- - name : Restore build artifacts
76- uses : actions/cache@v3
77- with :
78- path : |
79- ./dist
80- ./build
81- key : ${{ runner.os }}-build-${{ github.sha }}
82-
8362 - name : Semantic Release
84638564 with :
Original file line number Diff line number Diff line change @@ -108,36 +108,9 @@ screenshot_scraper = [
108108]
109109
110110[build-system ]
111- requires = [" hatchling>=1.0.0 " , " hatch-vcs " ]
111+ requires = [" hatchling" ]
112112build-backend = " hatchling.build"
113113
114- [tool .hatch .build ]
115- packages = [" scrapegraphai" ]
116- exclude = [
117- " tests/**" ,
118- " examples/**" ,
119- ]
120-
121- [tool .hatch .version ]
122- source = " vcs"
123-
124- [tool .hatch .build .hooks .vcs ]
125- version-file = " scrapegraphai/_version.py"
126-
127- [tool .hatch .build .targets .wheel ]
128- packages = [" scrapegraphai" ]
129-
130- [tool .hatch .build .targets .sdist ]
131- include = [
132- " /scrapegraphai" ,
133- " pyproject.toml" ,
134- " README.md" ,
135- " LICENSE" ,
136- ]
137-
138- [tool .hatch .metadata ]
139- allow-direct-references = true
140-
141114[dependency-groups ]
142115dev = [
143116 " burr[start]==0.22.1" ,
You can’t perform that action at this time.
0 commit comments