Skip to content

Commit 0af5ef2

Browse files
authored
Merge pull request #4 from salesforce/chore/update-publish-release
release: Update publish-release.yml and release v1.0.2
2 parents 21b255d + 579781d commit 0af5ef2

File tree

3 files changed

+20
-12
lines changed

3 files changed

+20
-12
lines changed

.github/workflows/publish-release.yml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,39 +4,44 @@
44

55
name: "publish release"
66

7-
on:
7+
on:
88
release:
99
types: [created]
1010

1111
jobs:
1212
build:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v3
16-
- uses: actions/setup-python@v4
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-python@v5
1717
with:
18-
python-version: '3.9'
18+
python-version: '3.10'
1919

2020
- name: install build dependencies
2121
run: python -m pip install --upgrade build
2222

2323
- name: build
2424
run: python -m build
2525

26-
- uses: actions/upload-artifact@v3
26+
- uses: actions/upload-artifact@v4
2727
with:
2828
path: dist
2929

30-
publish-pypi:
30+
pypi-publish:
31+
name: Upload release to PyPI
3132
runs-on: ubuntu-latest
33+
environment:
34+
name: pypi
35+
url: https://pypi.org/p/django-request-queue-timeout
36+
permissions:
37+
id-token: write
3238
needs: [build]
3339
steps:
34-
- uses: actions/download-artifact@v3
40+
- name: Retrieve distribution
41+
uses: actions/download-artifact@v4
3542
with:
3643
name: artifact
3744
path: dist
3845

39-
- uses: pypa/gh-action-pypi-publish@release/v1
40-
with:
41-
user: __token__
42-
password: ${{ secrets.PYPI_API_TOKEN }}
46+
- name: Publish package distributions to PyPI
47+
uses: pypa/gh-action-pypi-publish@release/v1

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [1.0.2] - 2024-02-05
8+
- [PR 2](https://github.com/salesforce/django-request-queue-timeout/pull/2) Update publish-release.yml
9+
710
## [1.0.1] - 2024-02-05
811
- [PR 1](https://github.com/salesforce/django-request-queue-timeout/pull/1) Set up Dependabot, PR checks, and a CHANGELOG
912

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "django-request-queue-timeout"
7-
version = "1.0.1"
7+
version = "1.0.2"
88
description = "Django middleware class to quickly dispatch any requests that wait too long in a queue before being processed"
99
license = {file = "LICENSE.txt"}
1010
readme = "README.md"

0 commit comments

Comments
 (0)