Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: fix pypi deployment #7

Merged
merged 4 commits into from
Jun 24, 2024
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
21 changes: 8 additions & 13 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ on:
jobs:
publish-pypi:
runs-on: ubuntu-latest
env:
DJANGO_SETTINGS_MODULE: production_settings

steps:
- name: Checkout source
Expand All @@ -19,30 +17,27 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: "3.x"

- uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ runner.os }}-pip-

- name: Install system dependencies
run: sudo apt update && sudo apt install -y gettext

- name: Install pretix
run: pip3 install pretix


- name: Install build dependencies
run: pip3 install pretix-plugin-build twine check-manifest pip setuptools wheel -Ue .
run: pip3 install pretix-plugin-build twine check-manifest pip setuptools wheel build -U

- name: Run check-manifest
run: check-manifest .
working-directory: .

- name: Build package
run: python setup.py sdist
run: python -m build

- name: Publish package to PyPi
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
Expand Down
2 changes: 1 addition & 1 deletion pretix_manualseats/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.0.4"
__version__ = "1.0.5"
Loading