-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (38 loc) · 1.06 KB
/
packages.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
35
36
37
38
39
40
41
42
43
44
name: packages
# When the 'permissions' key is specified, unspecified permission scopes (e.g.,
# actions, checks, etc.) are set to no access (none).
permissions:
contents: read
on:
workflow_dispatch:
inputs:
# When git-ref is empty, HEAD will be checked out.
git-ref:
description: Optional git ref (branch, tag, or full SHA)
required: false
jobs:
packages:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Clone
uses: actions/checkout@v4
with:
# When the ref is empty, HEAD will be checked out.
ref: ${{ github.event.inputs.git-ref }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Dependencies
run: python -m pip install --upgrade pip setuptools wheel
- name: Build
run: |
python setup.py sdist
python setup.py bdist_wheel --universal
- name: Upload
uses: actions/upload-artifact@v4
with:
name: packages
path: ./dist