Skip to content

Commit 8b1a829

Browse files
committed
circleci: build package
1 parent d83900f commit 8b1a829

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

.circleci/config.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
requires:
27+
- lint
28+
- tests
29+
filters:
30+
branches:
31+
ignore: /.*/
32+
tags:
33+
<<: *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)