-
Notifications
You must be signed in to change notification settings - Fork 13
50 lines (42 loc) · 1012 Bytes
/
release.yaml
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
name: Release
on:
release:
types: [released]
concurrency:
group: release
cancel-in-progress: false
jobs:
release:
runs-on: ubuntu-latest
container:
image: python:3
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Upload
run: |
pip install --upgrade setuptools wheel
python setup.py sdist bdist_wheel
- uses: actions/upload-artifact@v3
with:
name: dist
path: dist/
if-no-files-found: error
publish-to-pypi:
needs: release
runs-on: ubuntu-latest
permissions:
id-token: write
environment:
name: pypi
url: https://pypi.org/project/troposphere-dns-certificate/
steps:
- uses: actions/download-artifact@v3
with:
name: dist
path: dist/
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
print-hash: true
verbose: true