-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (27 loc) · 870 Bytes
/
sdist.yml
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
name: Create a Source Distribution
on:
push:
branches: [ "main", "develop" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
cache: 'pip'
python-version: 3.12
- name: Install packages
run: pip install -r requirements.txt
- name: Python Build
run: python setup.py sdist
- name: Upload SDist Artifact
uses: actions/[email protected]
with:
# Artifact name
name: sdist
# A file, directory or wildcard pattern that describes what to upload
path: ${{ github.workspace }}/dist