Skip to content

Commit

Permalink
preview tag + pypi token
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-filicetti committed Mar 29, 2021
1 parent 0df7e59 commit 2a451f9
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Publish Python distribution to PyPI and TestPyPI
on:
release:
types:
- created

jobs:
build-n-publish:
name: Publish Python distribution to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Setup Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

setup(
name=PKG_NAME,
version='0.4.4',
version='0.4.6',

packages=[PKG_NAME],
package_dir={PKG_NAME: f"{SRC_FOLDER}/{PKG_NAME}"},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
</svg>
<span class="m-2">
{% trans "Board Menu" %} - <b>{{ request.user }}</b>
{% if preview_mode %} - <b>Preview mode</b>{% endif %}
</span>
</div>
</a>
Expand All @@ -23,6 +24,7 @@
<div class="col-12">
<div class="link-list-wrapper">
<ul class="link-list">
{% if not preview_mode %}
<li>
<a class="list-item" href="{% url 'admin:index' %}">
<svg class="icon icon-md icon-dark">
Expand All @@ -47,6 +49,7 @@
</div>
</li>
<hr>
{% endif %}
<li>
<div class="toggles">
<label for="toggleBlocks">
Expand Down

0 comments on commit 2a451f9

Please sign in to comment.