Fixing the logger for googla_oath authenticator (#621) #77
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 django-ansible-base | ||
env: | ||
LC_ALL: "C.UTF-8" # prevent ERROR: Ansible could not initialize the preferred locale: unsupported locale setting | ||
on: | ||
workflow_dispatch: | ||
env: | ||
PROJECT_NAME: django-ansible-base | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 2 | ||
steps: | ||
- name: Checkout dab | ||
uses: actions/checkout@v4 | ||
with: | ||
show-progress: false | ||
- name: Get python version from Makefile | ||
run: echo py_version=`make PYTHON_VERSION` >> $GITHUB_ENV | ||
- name: Install python ${{ env.py_version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ env.py_version }} | ||
- name: Install python deps | ||
run: pip install -r requirements/requirements_dev.txt | ||
- name: Build the dists | ||
run: >- | ||
ansible-playbook | ||
tools/ansible/release.yml | ||
-i localhost | ||
-e github_token=${{ secrets.GITHUB_TOKEN }} | ||
-t build | ||
- name: Store the distribution packages | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: python-package-distributions | ||
path: | | ||
dist/*.tar.gz | ||
dist/*.whl | ||
retention-days: 90 | ||
publish-pypi: | ||
name: Publish to PyPI | ||
needs: | ||
- build | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 1 | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/project/${{ env.PROJECT_NAME }} | ||
permissions: | ||
contents: read # This job doesn't need to `git push` anything | ||
id-token: write # PyPI Trusted Publishing (OIDC) | ||
steps: | ||
- name: Download all the dists | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: python-package-distributions | ||
path: dist/ | ||
- name: Publish dists to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
post-release-repo-update: | ||
name: Make a GitHub Release | ||
needs: | ||
- publish-pypi | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 2 | ||
permissions: | ||
packages: write | ||
contents: write | ||
steps: | ||
- name: Download all the dists | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: python-package-distributions | ||
path: dist/ | ||
- name: Create a GitHub Release uploading the dists | ||
run: >- | ||
ansible-playbook | ||
tools/ansible/release.yml | ||
-i localhost | ||
-e github_token=${{ secrets.GITHUB_TOKEN }} | ||
-t github |