Skip to content

[WIP] Additional baseline features #58

[WIP] Additional baseline features

[WIP] Additional baseline features #58

Workflow file for this run

---
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:

Check failure on line 10 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

You have an error in your yaml syntax on line 10
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