Skip to content

Commit c5a260c

Browse files
authored
Merge pull request #14 from paywithextend/update-release-workflow-and-project-name
Update release workflow and project name
2 parents 0ba5858 + 31b616d commit c5a260c

File tree

5 files changed

+60
-66
lines changed

5 files changed

+60
-66
lines changed

.github/pull_request_template.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## What is this PR doing?
2+
3+
> Brief description of the changes in this pull request. Include the purpose and high level overview.
4+
5+
## Why do we need these changes?
6+
7+
> Explain the reasoning behind these changes (feature, bug-fix, performance improvement, etc)
8+
9+
## Additional Notes
10+
11+
> Anything else you would like to note here.

.github/workflows/release.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Release Stage Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v3
18+
19+
- name: Set up Python
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: 3.11
23+
24+
- name: Install dependencies
25+
run: sudo apt-get install make
26+
27+
- name: Create virtual environment
28+
run: make venv
29+
30+
- name: Build package
31+
run: |
32+
set -x
33+
source venv/bin/activate
34+
rm -rf build dist *.egg-info
35+
make build ENV=stage
36+
37+
- name: Install Twine
38+
run: |
39+
source venv/bin/activate
40+
pip install twine
41+
42+
- name: Upload to PyPI
43+
env:
44+
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
45+
run: |
46+
source venv/bin/activate
47+
twine upload dist/* -u __token__ -p $PYPI_API_TOKEN

.github/workflows/release_stage.yml

Lines changed: 0 additions & 64 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ For detailed API documentation, please visit our [Stoplight documentation](https
2626
### From PyPI
2727

2828
```bash
29-
pip install extend-python
29+
pip install paywithextend
3030
```
3131

3232
### From Source

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = ["hatchling"]
33
build-backend = "hatchling.build"
44

55
[project]
6-
name = "extend"
6+
name = "paywithextend"
77
version = "0.1.0"
88
description = "Python client for the Extend API"
99
readme = "README.md"

0 commit comments

Comments
 (0)