Skip to content

Fixed release.yml

Fixed release.yml #4

Workflow file for this run

name: Release
on:
push:
tags:
- v*
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
python-version: [ "3.10", "3.11", "3.12" ]
django-version: [ 4, 5 ]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/test
with:
python-version: ${{ matrix.python-version }}
django-version: ${{ matrix.django-version }}
release:
runs-on: ubuntu-latest
needs: [test]
steps:
- uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build
run: python -m build
- name: Check
run: twine check dist/*
- name: Release
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/