Skip to content

Commit

Permalink
test automated release
Browse files Browse the repository at this point in the history
  • Loading branch information
jsocol committed Dec 5, 2023
1 parent f44ab3e commit 749e9c3
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: release

on:
push:
tags:
- v*

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python-version: ['3.10', '3.11']
django: ['3.2', '4.2', '5.0']
include:
- python-version: '3.12'
django: '5.0'

steps:
- uses: actions/checkout@v3

- uses: ./.github/actions/test
with:
python-version: ${{ matrix.python-version }}
django-version: ${{ matrix.django }}

release:
runs-on: ubuntu-latest
needs: [test]
environment: release
permissions:
id-token: write
steps:

- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11

- name: install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: build
run: ./run.sh build

- name: check
run: ./run.sh check

- name: release
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/

0 comments on commit 749e9c3

Please sign in to comment.