Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
tag-pattern: &tag-pattern
only: /^\d+\.\d+\.\d+$/

version: 2.1

jobs:
deploy:
docker:
- image: cimg/python:3.12
steps:
- checkout
- run:
name: Package
command: make package
- persist_to_workspace:
root: .
paths:
- "dist"

workflows:
version: 2
main:
jobs:
- deploy:
context: org-global
requires:
- lint
- tests
filters:
branches:
ignore: /.*/
tags:
<<: *tag-pattern
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
clean:
rm -rf build dist *.egg-info

dist:
python3 setup.py bdist_wheel --universal

upload:
curl -F package=@`find dist -name "django_elasticsearch_dsl_drf-*.whl"` $(PRIVATE_PYPI_UPLOAD_URL)
curl -F package=@`find dist -name "django_elasticsearch_dsl_drf-*.whl"` $(FURY_LABCODES_PRIVATE_PYPI_UPLOAD_URL)


package: clean dist upload