File tree Expand file tree Collapse file tree 3 files changed +22
-17
lines changed Expand file tree Collapse file tree 3 files changed +22
-17
lines changed Original file line number Diff line number Diff line change 1
1
name : deploy
2
2
3
3
on :
4
- push :
5
- tags :
6
- - " [0-9]+.[0-9]+.[0-9]+"
4
+ workflow_dispatch :
5
+ inputs :
6
+ version :
7
+ description : ' Release version'
8
+ required : true
9
+ default : ' 1.2.3'
7
10
8
11
jobs :
9
12
10
13
deploy :
11
14
runs-on : ubuntu-latest
15
+ environment : deploy
16
+ permissions :
17
+ id-token : write # For PyPI trusted publishers.
18
+ contents : write # For tag and release notes.
19
+ env :
20
+ SETUPTOOLS_SCM_PRETEND_VERSION : ${{ github.event.inputs.version }}
12
21
13
22
steps :
14
23
- uses : actions/checkout@v3
23
32
path : dist
24
33
25
34
- name : Publish package to PyPI
26
- uses : pypa/gh-action-pypi-publish@master
27
- with :
28
- user : __token__
29
- password : ${{ secrets.pypi_token }}
35
+
30
36
31
- - name : Set up Python
32
-
37
+ - uses : actions-ecosystem/action-push-tag@v1
33
38
with :
34
- python-version : " 3.10 "
39
+ tag : ${{ github.event.inputs.version }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ Here are the steps on how to make a new release.
2
+
3
+ 1. Create a ``release-VERSION `` branch from ``upstream/main ``.
4
+ 2. Update ``CHANGELOG.rst ``.
5
+ 3. Push the branch to ``upstream ``.
6
+ 4. Once all tests pass, start the ``deploy `` workflow manually.
7
+ 5. Merge the PR.
You can’t perform that action at this time.
0 commit comments