Skip to content

Merge pull request #554 from PacificGilly/jamesgilmore/fix-release-dr… #1

Merge pull request #554 from PacificGilly/jamesgilmore/fix-release-dr…

Merge pull request #554 from PacificGilly/jamesgilmore/fix-release-dr… #1

Workflow file for this run

---
name: Deploy to test.pypi.org
on:
push:
branches: [master]
jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
cache: pip
- name: Install dependencies
run: python -m pip install --upgrade pip poetry
- name: Deploy to testpypi.org
run: |
LATEST_RELEASE=$(curl -s "https://api.github.com/repos/farridav/django-jazzmin/tags" | jq -r '.[0].name[1:]')
poetry version $LATEST_RELEASE
poetry version prepatch
poetry config repositories.test_pypi https://test.pypi.org/legacy/
poetry publish --build -r test_pypi --username __token__ --password ${{ secrets.TEST_PYPI_TOKEN }} || true
update_release_draft:
permissions:
contents: write
pull-requests: read
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5
with:
config-name: release-drafter.yml
disable-autolabeler: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}