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
39 changes: 39 additions & 0 deletions .github/workflows/publish-to-live-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
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
steps:
- uses: actions/checkout@master
- name: Set up Python 3.11
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@master
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
Copy link
Member

Choose a reason for hiding this comment

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

This needs to be the trusted publisher workflow rather than the old token based one;
https://github.com/django-cms/djangocms-snippet/blob/master/.github/workflows/publish-to-live-pypi.yml

40 changes: 40 additions & 0 deletions .github/workflows/publish-to-test-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
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
steps:
- uses: actions/checkout@master
- name: Set up Python 3.11
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@master
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
Copy link
Member

Choose a reason for hiding this comment

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

This needs to be the trusted publisher workflow rather than the old token based one;
https://github.com/django-cms/djangocms-snippet/blob/master/.github/workflows/publish-to-test-pypi.yml

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