Skip to content

Commit 6c3325a

Browse files
committed
Merge branch 'feature/ci' into develop
2 parents 00464af + 1d4cb4e commit 6c3325a

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed

.github/workflows/publish.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Publish Python 🐍 distributions 📦 to PyPI
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
build-and-publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Set up Python 3.9
13+
uses: actions/setup-python@v1
14+
with:
15+
python-version: 3.9
16+
- name: Install pypa/build
17+
run: python -m pip install build --user
18+
- name: Build a binary wheel and a source tarball
19+
run: python -m build --sdist --wheel --outdir dist/
20+
- name: Publish distribution to PyPI
21+
uses: pypa/gh-action-pypi-publish@master
22+
with:
23+
password: ${{ secrets.PYPI_API_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
env
2+
venv
23
__pycache__
34
*.sqlite3
45
media/

image_uploader_widget/static/widgets/image_uploader_widget.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
},
2020
fileRemarker: function(e) {
2121
var iuw = $(this).parent().data('iuw');
22-
if (this.files.length == 0) {
22+
var raw = $(this).parent().attr('data-raw');
23+
if (this.files.length == 0 && !raw) {
2324
this.classList.remove('non-empty');
2425
$(this).parent().find('input[type=checkbox]').prop('checked', true);
2526
} else {

0 commit comments

Comments
 (0)