Skip to content

Commit 15e1ac6

Browse files
committed
fix: remove redundant PyPI publishing from release workflow
- Release workflow now only creates GitHub releases - Publish workflow handles PyPI publishing when release is published - Eliminates duplicate PyPI publishing attempts
1 parent aee839f commit 15e1ac6

6 files changed

Lines changed: 262 additions & 147 deletions

File tree

.github/workflows/release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Generate changelog
18+
id: changelog
19+
run: |
20+
echo "## Changes" > RELEASE_NOTES.md
21+
git log $(git describe --tags --abbrev=0 HEAD^)..HEAD --pretty=format:"- %s" >> RELEASE_NOTES.md
22+
23+
- name: Create GitHub Release
24+
uses: actions/create-release@v1
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
with:
28+
tag_name: ${{ github.ref }}
29+
release_name: Release ${{ github.ref }}
30+
body_path: RELEASE_NOTES.md
31+
draft: false
32+
prerelease: false

docs/_config.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
title: Pathao Python SDK
22
description: A comprehensive Python SDK for the Pathao Courier Merchant API
33
baseurl: "/pathao-python"
4-
url: "https://yourusername.github.io"
4+
url: "https://mojnomiya.github.io"
55

66
markdown: kramdown
77
highlighter: rouge
@@ -10,8 +10,33 @@ theme: minima
1010
plugins:
1111
- jekyll-feed
1212
- jekyll-sitemap
13+
- jekyll-seo-tag
14+
15+
author:
16+
name: Md Mojno Miya
17+
email: your.email@example.com
18+
19+
social:
20+
name: Pathao Python SDK
21+
links:
22+
- https://github.com/mojnomiya/pathao-python
23+
24+
header_pages:
25+
- installation.md
26+
- authentication.md
27+
- store_management.md
28+
- order_management.md
29+
- location_services.md
30+
- price_calculation.md
31+
- error_handling.md
32+
- api_reference.md
1333

1434
exclude:
1535
- .github/
1636
- .gitignore
1737
- README.md
38+
- requirements-dev.txt
39+
- pyproject.toml
40+
- tests/
41+
- examples/
42+
- venv/

docs/assets/main.scss

Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
---
2+
---
3+
4+
@import "{{ site.theme }}";
5+
6+
/* Custom styles for Pathao Python SDK docs */
7+
8+
/* Header styling */
9+
.site-header {
10+
border-top: 5px solid #2196F3;
11+
background-color: #fff;
12+
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
13+
}
14+
15+
.site-title {
16+
font-weight: 600;
17+
color: #2196F3 !important;
18+
}
19+
20+
/* Navigation styling */
21+
.site-nav .page-link {
22+
color: #424242;
23+
font-weight: 500;
24+
}
25+
26+
.site-nav .page-link:hover {
27+
color: #2196F3;
28+
}
29+
30+
/* Content styling */
31+
.post-content h1 {
32+
color: #1976D2;
33+
border-bottom: 2px solid #E3F2FD;
34+
padding-bottom: 0.3em;
35+
}
36+
37+
.post-content h2 {
38+
color: #1976D2;
39+
margin-top: 2em;
40+
}
41+
42+
.post-content h3 {
43+
color: #424242;
44+
}
45+
46+
/* Code blocks */
47+
.highlight {
48+
border-radius: 6px;
49+
border: 1px solid #E0E0E0;
50+
}
51+
52+
code {
53+
background-color: #F5F5F5;
54+
padding: 2px 4px;
55+
border-radius: 3px;
56+
font-size: 0.9em;
57+
}
58+
59+
/* Tables */
60+
table {
61+
border-collapse: collapse;
62+
margin: 1em 0;
63+
width: 100%;
64+
}
65+
66+
table th {
67+
background-color: #E3F2FD;
68+
color: #1976D2;
69+
font-weight: 600;
70+
}
71+
72+
table th, table td {
73+
border: 1px solid #E0E0E0;
74+
padding: 8px 12px;
75+
text-align: left;
76+
}
77+
78+
table tr:nth-child(even) {
79+
background-color: #FAFAFA;
80+
}
81+
82+
/* Badges */
83+
img[alt*="badge"] {
84+
margin: 2px;
85+
}
86+
87+
/* Feature list styling */
88+
ul li:has(strong) {
89+
margin-bottom: 0.5em;
90+
}
91+
92+
/* Links */
93+
a {
94+
color: #2196F3;
95+
}
96+
97+
a:hover {
98+
color: #1976D2;
99+
}
100+
101+
/* Buttons and callouts */
102+
.btn {
103+
display: inline-block;
104+
padding: 8px 16px;
105+
background-color: #2196F3;
106+
color: white;
107+
text-decoration: none;
108+
border-radius: 4px;
109+
font-weight: 500;
110+
}
111+
112+
.btn:hover {
113+
background-color: #1976D2;
114+
color: white;
115+
}
116+
117+
/* Footer */
118+
.site-footer {
119+
background-color: #F5F5F5;
120+
border-top: 1px solid #E0E0E0;
121+
}
122+
123+
/* Responsive adjustments */
124+
@media screen and (max-width: 600px) {
125+
.site-nav {
126+
background-color: #fff;
127+
border: 1px solid #E0E0E0;
128+
border-radius: 5px;
129+
}
130+
}

docs/authentication.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
---
2+
layout: page
3+
title: Authentication
4+
permalink: /authentication/
5+
---
6+
17
# Authentication Guide
28

39
## Overview

0 commit comments

Comments
 (0)