Skip to content

Commit f42a933

Browse files
Merge pull request #13 from alexanderjordanbaker/Prepare011Release
Adding automatic publishing and version bump in preperation for 0.2.0…
2 parents ab19f3a + df3a9e5 commit f42a933

File tree

5 files changed

+68
-2
lines changed

5 files changed

+68
-2
lines changed

.github/workflows/ci-release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Release Builder
2+
on:
3+
release:
4+
types: [published]
5+
jobs:
6+
build:
7+
name: Python Release Builder
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
- name: Set up Python
12+
uses: actions/setup-python@v4
13+
with:
14+
python-version: "3.11"
15+
- name: Install build
16+
run: >-
17+
python3 -m
18+
pip install
19+
build
20+
--user
21+
- name: Build the sdist and wheel
22+
run: >-
23+
python3 -m
24+
build
25+
- name: Publish to PyPI
26+
uses: pypa/gh-action-pypi-publish@release/v1
27+
with:
28+
password: ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/ci-snapshot.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Snapshot Builder
2+
on:
3+
push:
4+
branches: [ main ]
5+
tags-ignore:
6+
- "[0-9]+.[0-9]+.[0-9]+"
7+
- "[0-9]+.[0-9]+.[0-9]+.[0-9]+"
8+
jobs:
9+
build:
10+
name: Python Snapshot Builder
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Set up Python
15+
uses: actions/setup-python@v4
16+
with:
17+
python-version: "3.11"
18+
- name: Install build
19+
run: >-
20+
python3 -m
21+
pip install
22+
build
23+
--user
24+
- name: Build the sdist and wheel
25+
run: >-
26+
python3 -m
27+
build
28+
- name: Publish to Test PyPI
29+
uses: pypa/gh-action-pypi-publish@release/v1
30+
with:
31+
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
32+
repository-url: https://test.pypi.org/legacy/

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build:
66
python: "3.11"
77
jobs:
88
pre_build:
9-
- sphinx-apidoc -F -H "App Store Server Library" -A "Apple Inc." -V "0.1.0" -e -a -o _staging . tests setup.py
9+
- sphinx-apidoc -F -H "App Store Server Library" -A "Apple Inc." -V "0.2.0" -e -a -o _staging . tests setup.py
1010

1111
sphinx:
1212
configuration: _staging/conf.py

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Changelog
2+
3+
## 0.2.0
4+
5+
- Correct type in LastTransactionsItem's status field [#11] (https://github.com/apple/app-store-server-library-python/pull/11)
6+
- Fix default value None for fields should require an Optional type [#6] (https://github.com/apple/app-store-server-library-python/pull/6)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
setup(
1111
name="app-store-server-library",
12-
version="0.1.0",
12+
version="0.2.0",
1313
description="The App Store Server Library",
1414
long_description=long_description,
1515
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)