-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (48 loc) · 1.54 KB
/
python-publish.yml
File metadata and controls
56 lines (48 loc) · 1.54 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
52
53
54
55
56
name: Upload Python Package
on:
release:
types: [published]
permissions:
contents: write
jobs:
release-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Build release distributions
run: |
# NOTE: put your own distribution build steps here.
python -m pip install build
python -m build
- name: Upload distributions
uses: actions/upload-artifact@v4
with:
name: release-dists
path: dist/
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
files: dist/*
generate_release_notes: true
body: |
# Installation
## pip
```bash
# AWS optional dependency
pip install "https://github.com/iCHEF/pychef/releases/download/${{ github.ref_name }}/pychef-${{ github.ref_name }}.tar.gz[aws]"
```
## uv
```bash
# AWS optional dependency
uv pip install "https://github.com/iCHEF/pychef/releases/download/${{ github.ref_name }}/pychef-${{ github.ref_name }}.tar.gz[aws]"
```
## requirements.txt
```bash
# AWS optional dependency
https://github.com/iCHEF/pychef/releases/download/${{ github.ref_name }}/pychef-${{ github.ref_name }}.tar.gz[aws]
```
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}