File tree 2 files changed +14
-62
lines changed
2 files changed +14
-62
lines changed Original file line number Diff line number Diff line change @@ -14,52 +14,40 @@ jobs:
14
14
run : |
15
15
sudo apt update
16
16
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
-
23
17
- name : Install uv
24
18
uses : astral-sh/setup-uv@v3
25
-
26
19
- name : Install Node Env
27
20
uses : actions/setup-node@v4
28
21
with :
29
22
node-version : 20
30
-
31
23
- name : Checkout
32
24
33
25
with :
34
26
fetch-depth : 0
35
27
persist-credentials : false
36
-
37
- - name : Install dependencies and build package
28
+ - name : Build app
38
29
run : |
39
- uv venv
40
- . .venv/bin/activate
41
- uv pip install twine
42
30
uv sync --frozen
43
- uv pip install -e .
44
31
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
48
36
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 != ''
53
40
54
41
release :
55
42
name : Release
56
43
runs-on : ubuntu-latest
57
44
needs : build
58
45
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'
63
51
permissions :
64
52
contents : write
65
53
issues : write
71
59
with :
72
60
fetch-depth : 0
73
61
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
-
83
62
- name : Semantic Release
84
63
85
64
with :
Original file line number Diff line number Diff line change @@ -108,36 +108,9 @@ screenshot_scraper = [
108
108
]
109
109
110
110
[build-system ]
111
- requires = [" hatchling>=1.0.0 " , " hatch-vcs " ]
111
+ requires = [" hatchling" ]
112
112
build-backend = " hatchling.build"
113
113
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
-
141
114
[dependency-groups ]
142
115
dev = [
143
116
" burr[start]==0.22.1" ,
You can’t perform that action at this time.
0 commit comments