Commit c637775
authored
Publish to Test PyPI with every commit to main (#1042)
This modifies the `publish.yml` workflow to run with every commit to
`main` branch. These commits will then lead to producing a Test PyPI
release.
That way, we will get to test out our publishing CI constantly, so that
when we do want to push out a release, we don't need to be afraid that
it might not work since the CI was modified and this is the first time
it's running.
Additionally, it will give our users the option to use these TestPyPI
releases if they want a more up-to-date version of the library, without
having to result to directly using git and building the package locally.
This also gives users the benefit of having checkable attestations,
proving that the build files were produced by our CI on the TestPyPI.
Note 1: This modifies `uv-dynamic-versioning` to avoid including the
commit sha as the local version component (e.g. instead of
`0.6.0.post10.dev0+81baa11`, only produce `0.6.0.post10.dev0`). This is
because PyPI [doesn't
support](https://packaging.python.org/en/latest/specifications/version-specifiers/#version-specifiers)
the use of local version components.
Note 2: This drops support for the `workflow_call` trigger, if still we
really want it, I should be able to integrate it with this, though I'm
not sure how necessary it is.
PS: See the Test PyPI installation instructions in [mcproto
docs](https://py-mine.github.io/mcproto/latest/installation/#test-pypi-latest-main-commit-builds)1 parent ca3e547 commit c637775
3 files changed
+75
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
37 | 29 | | |
| 30 | + | |
38 | 31 | | |
39 | 32 | | |
40 | 33 | | |
41 | | - | |
42 | | - | |
| 34 | + | |
| 35 | + | |
43 | 36 | | |
44 | 37 | | |
45 | 38 | | |
46 | 39 | | |
47 | 40 | | |
48 | 41 | | |
49 | | - | |
50 | | - | |
51 | 42 | | |
| 43 | + | |
| 44 | + | |
52 | 45 | | |
53 | 46 | | |
54 | 47 | | |
55 | | - | |
| 48 | + | |
56 | 49 | | |
57 | | - | |
58 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
59 | 73 | | |
60 | 74 | | |
61 | 75 | | |
| |||
65 | 79 | | |
66 | 80 | | |
67 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
68 | 107 | | |
69 | 108 | | |
| 109 | + | |
70 | 110 | | |
71 | 111 | | |
72 | | - | |
| 112 | + | |
73 | 113 | | |
74 | 114 | | |
75 | 115 | | |
76 | 116 | | |
77 | 117 | | |
78 | | - | |
| 118 | + | |
79 | 119 | | |
80 | 120 | | |
81 | 121 | | |
82 | 122 | | |
83 | 123 | | |
84 | 124 | | |
85 | | - | |
| 125 | + | |
86 | 126 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| |||
199 | 200 | | |
200 | 201 | | |
201 | 202 | | |
| 203 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments