Skip to content

Added compatibility with django-admin-action-forms and any order of d… #5

Added compatibility with django-admin-action-forms and any order of d…

Added compatibility with django-admin-action-forms and any order of d… #5

name: Build and Publish to PyPI
on:
push:
tags:
- '*.*.*'
jobs:
build-and-publish-to-pypi:
name: Build and Publish to PyPI
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y gettext
python3 -m pip install --upgrade pip django build twine
- name: Compile .po files to .mo
run: django-admin compilemessages --ignore "**/django/**"
- name: Build package
env:
PACKAGE_VERSION: ${{ github.ref_name }}
run: bash build-package.sh
- name: Publish to PyPI
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: twine upload --non-interactive dist/*