forked from apple/app-store-server-library-python
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 810 Bytes
/
Copy pathci-snapshot.yml
File metadata and controls
33 lines (33 loc) · 810 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
name: Snapshot Builder
permissions:
contents: read
on:
release:
types: [published]
jobs:
build:
# Pre-release builds trigger a snapshot being created
if: "github.event.release.prerelease"
name: Python Snapshot Builder
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.14"
- name: Install build
run: >-
python3 -m
pip install
build
--user
- name: Build the sdist and wheel
run: >-
python3 -m
build
- name: Publish to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/