Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Prepare release 3.1.0 #65

Merged
merged 12 commits into from
Dec 6, 2023
41 changes: 41 additions & 0 deletions .github/workflows/publish-to-live-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Publish Python 🐍 distributions 📦 to pypi

on:
release:
types:
- published

jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to pypi
runs-on: ubuntu-latest
environment:
name: pypi
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This name also needs to match what the publisher has defined, but on the whole I just call it pypi

url: https://pypi.org/p/djangocms-style
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.11'

- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.

- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
43 changes: 43 additions & 0 deletions .github/workflows/publish-to-test-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Publish Python 🐍 distributions 📦 to TestPyPI

on:
push:
branches:
- master

jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to TestPyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://test.pypi.org/p/djangocms-style
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.11'

- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.

- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
skip-existing: true
19 changes: 16 additions & 3 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,24 @@
Changelog
=========

Unreleased
3.1.0 (2023-12-06)
==================

* Removed (pinned) django-treebeard dependency

## What's Changed
* Add GitHub Actions by @crydotsnake in https://github.com/django-cms/djangocms-style/pull/56
* FEATURE: adjust setup metadata by @crydotsnake in https://github.com/django-cms/djangocms-style/pull/58
* FEATURE: add github pr template by @crydotsnake in https://github.com/django-cms/djangocms-style/pull/57
* Removed pinned django-treebeard by @tidenhub in https://github.com/django-cms/djangocms-style/pull/59
* Feat: Django 4.2 support by @mogoh in https://github.com/django-cms/djangocms-style/pull/61
* chore: Improve ruff config by @marksweb in https://github.com/django-cms/djangocms-style/pull/64

## New Contributors
* @crydotsnake made their first contribution in https://github.com/django-cms/djangocms-style/pull/56
* @tidenhub made their first contribution in https://github.com/django-cms/djangocms-style/pull/59
* @mogoh made their first contribution in https://github.com/django-cms/djangocms-style/pull/61
* @marksweb made their first contribution in https://github.com/django-cms/djangocms-style/pull/64

**Full Changelog**: https://github.com/django-cms/djangocms-style/compare/3.0.0...3.1.0

3.0.0 (2020-09-02)
==================
Expand Down
2 changes: 1 addition & 1 deletion djangocms_style/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "3.0.0"
__version__ = "3.1.0"
Loading