Skip to content

Commit daa351a

Browse files
committed
Merge pull request #1 from loadsmart/build-package
circleci: build package
2 parents d83900f + 8b1a829 commit daa351a

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

.circleci/config.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
tag-pattern: &tag-pattern
2+
only: /^\d+\.\d+\.\d+$/
3+
4+
version: 2.1
5+
6+
jobs:
7+
deploy:
8+
docker:
9+
- image: cimg/python:3.12
10+
steps:
11+
- checkout
12+
- run:
13+
name: Package
14+
command: make package
15+
- persist_to_workspace:
16+
root: .
17+
paths:
18+
- "dist"
19+
20+
workflows:
21+
version: 2
22+
main:
23+
jobs:
24+
- deploy:
25+
context: org-global
26+
filters:
27+
branches:
28+
ignore: /.*/
29+
tags:
30+
<<: *tag-pattern

Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
clean:
2+
rm -rf build dist *.egg-info
3+
4+
dist:
5+
python3 setup.py bdist_wheel --universal
6+
7+
upload:
8+
curl -F package=@`find dist -name "django_elasticsearch_dsl_drf-*.whl"` $(PRIVATE_PYPI_UPLOAD_URL)
9+
curl -F package=@`find dist -name "django_elasticsearch_dsl_drf-*.whl"` $(FURY_LABCODES_PRIVATE_PYPI_UPLOAD_URL)
10+
11+
12+
package: clean dist upload

0 commit comments

Comments
 (0)