forked from pytest-dev/pytest-django
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 1010 Bytes
/
Copy pathdeploy.yml
File metadata and controls
43 lines (35 loc) · 1010 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: deploy
on:
push:
tags:
- "*"
# Set permissions at the job level.
permissions: {}
jobs:
package:
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Build and Check Package
uses: hynek/build-and-inspect-python-package@c52c3a4710070b50470d903818a7b25115dcd076 # v2.13.0
deploy:
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && github.repository == 'pytest-dev/pytest-django'
needs: [package]
runs-on: ubuntu-24.04
environment: deploy
timeout-minutes: 15
permissions:
contents: read
# For trusted publishing.
id-token: write
steps:
- name: Download Package
uses: actions/download-artifact@v4
with:
name: Packages
path: dist
- name: Publish package
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4