Skip to content

Commit a0c0a7f

Browse files
committed
fix: revert to d1b2104
1 parent 6932ec3 commit a0c0a7f

File tree

2 files changed

+14
-62
lines changed

2 files changed

+14
-62
lines changed

.github/workflows/release.yml

+13-34
Original file line numberDiff line numberDiff 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
3224
uses: actions/[email protected]
3325
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
@@ -71,15 +59,6 @@ jobs:
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
8463
uses: cycjimmy/[email protected]
8564
with:

pyproject.toml

+1-28
Original file line numberDiff line numberDiff line change
@@ -108,36 +108,9 @@ screenshot_scraper = [
108108
]
109109

110110
[build-system]
111-
requires = ["hatchling>=1.0.0", "hatch-vcs"]
111+
requires = ["hatchling"]
112112
build-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]
142115
dev = [
143116
"burr[start]==0.22.1",

0 commit comments

Comments
 (0)