Added compatibility with django-admin-action-forms and any order of d… #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/* |