Remove usages of deprecated datetime.utcnow() and datetime.utcfromtim… #18
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: 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 |