Skip to content

Sync .mo files (#736) #16

Sync .mo files (#736)

Sync .mo files (#736) #16

Workflow file for this run

name: Release
on:
push:
tags:
- '*'
jobs:
build:
if: github.repository == 'jazzband/djangorestframework-simplejwt'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
sudo apt-get install -y gettext
python -m pip install -U pip
python -m pip install -U setuptools twine wheel
pip install -e .[dev]
- name: Check locale
working-directory: rest_framework_simplejwt
run: |
echo "Checking if locale files need updating. If they do, cd rest_framework_simplejwt && run python ../scripts/i18n_updater.py"
python ../scripts/i18n_updater.py
git diff --exit-code
- name: Build package
run: |
python setup.py --version
python setup.py sdist --format=gztar bdist_wheel
twine check dist/*
- name: Upload packages to Jazzband
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
user: jazzband
password: ${{ secrets.JAZZBAND_RELEASE_KEY }}
repository_url: https://jazzband.co/projects/djangorestframework-simplejwt/upload