-
Notifications
You must be signed in to change notification settings - Fork 6
41 lines (32 loc) · 915 Bytes
/
cd.yml
File metadata and controls
41 lines (32 loc) · 915 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
name: Release
on:
push:
branches:
- main
paths:
- 'src/pytest_nhsd_apim/**'
- 'pyproject.toml'
- 'setup.py'
permissions:
id-token: write
contents: read
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout current branch
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install Python 3.13
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
with:
python-version: 3.13
- name: install deps
run: make install-deps
- name: install twine
run: pip install --upgrade pip && pip install twine
- name: build
run: make build
- name: check build
run: twine check dist/*
- name: Publish to PyPI (OIDC)
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0