forked from gijzelaerr/python-snap7
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (37 loc) · 890 Bytes
/
source-build.yml
File metadata and controls
38 lines (37 loc) · 890 Bytes
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
name: Build source distribution
on:
push:
branches: [master]
pull_request:
branches: [master]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.13"
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
- name: Install build tools
run: |
uv venv
uv pip install build
- name: Create source tarball
run: |
uv run python -m build . --sdist
- name: Upload artifacts
uses: actions/upload-artifact@v7
with:
name: dist-source
path: dist/*.tar.gz