Commit 34d63b4
authored
chore(cicd): switched to python semantic release github action (#67)
The current workflow uses a release branch strategy (`release/*`) that
required manual merging of release commits back to main. The problem was
that those release tags were only on the release branch and needed to
merge back to main.
I tested this out in a fork and it's working
[here](https://github.com/lempira/algokit-subscriber-py). It has
everything except publishing to PyPi.
### Solution
- **Replaced release branch triggers** with `workflow_dispatch` for
manual production releases
- **Added conditional release logic** using `python-semantic-release`
GitHub Action:
- Push to main → automatic beta releases
- Manual dispatch with `production_release=true` → production releases
- Manual dispatch with `production_release=false` → beta releases
- **Simplified semantic-release config** to work directly on main branch
with conditional prerelease behavior
- **Added docs publishing control** - only publishes for production
releases
### Key Changes
- Removed `release/*` branch handling entirely
- Added `workflow_dispatch` input for production release control
- Switched to `python-semantic-release` GitHub Action for better
integration
- Updated semantic release config to use main branch with
`prerelease=false` default
- Added dynamic run names for better workflow visibility3 files changed
+41
-493
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
7 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
8 | 18 | | |
9 | 19 | | |
10 | 20 | | |
| |||
17 | 27 | | |
18 | 28 | | |
19 | 29 | | |
20 | | - | |
| 30 | + | |
21 | 31 | | |
22 | 32 | | |
23 | 33 | | |
| |||
37 | 47 | | |
38 | 48 | | |
39 | 49 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
| 50 | + | |
52 | 51 | | |
53 | 52 | | |
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
70 | 60 | | |
71 | | - | |
72 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
73 | 65 | | |
74 | | - | |
| 66 | + | |
| 67 | + | |
75 | 68 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
81 | 75 | | |
82 | 76 | | |
83 | | - | |
84 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
85 | 81 | | |
86 | 82 | | |
87 | 83 | | |
88 | | - | |
89 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
90 | 87 | | |
91 | 88 | | |
92 | 89 | | |
93 | 90 | | |
94 | | - | |
| 91 | + | |
0 commit comments