generated from remarkablemark/python-cli-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (43 loc) · 1.07 KB
/
release.yml
File metadata and controls
51 lines (43 loc) · 1.07 KB
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
44
45
46
47
48
49
50
51
name: release
on:
push:
branches:
- master
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
outputs:
release_created: ${{ steps.release.outputs.release_created }}
steps:
- name: Release Please
uses: googleapis/release-please-action@v4
id: release
with:
release-type: python
publish:
needs: release
if: ${{ needs.release.outputs.release_created }}
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
environment:
name: pypi
url: https://pypi.org/p/diffused
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Use Python
uses: actions/setup-python@v6
with:
python-version-file: pyproject.toml
- name: Install build
run: python -m pip install build
- name: Build package
run: python -m build
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1