Skip to content

Commit 23c8532

Browse files
committed
chore: setup release automation and fix build scope
1 parent 3c077e5 commit 23c8532

2 files changed

Lines changed: 37 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build & Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Set up Python
15+
uses: actions/setup-python@v5
16+
with:
17+
python-version: '3.12'
18+
19+
- name: Install build tools
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install build
23+
24+
- name: Build package
25+
run: python -m build
26+
27+
- name: Create GitHub Release
28+
id: create_release
29+
uses: softprops/action-gh-release@v2
30+
with:
31+
files: dist/*
32+
generate_release_notes: true
33+
draft: false
34+
prerelease: false
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ scrapewizard = "scrapewizard.cli.main:app"
3737

3838
[tool.setuptools.packages.find]
3939
where = ["."]
40-
include = ["scrapewizard*"]
40+
include = ["scrapewizard*", "scrapewizard_runtime*"]

0 commit comments

Comments
 (0)