File tree Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Original file line number Diff line number Diff line change 7
7
8
8
jobs :
9
9
build :
10
- runs-on : ${{ matrix.os }}
11
- strategy :
12
- matrix :
13
- os : [macos-latest, ubuntu-latest]
14
- python-version : [pypy-3.7, 3.9]
10
+ runs-on : ubuntu-latest
15
11
16
12
steps :
17
13
- uses : actions/checkout@v2
18
14
- name : Set up Python ${{ matrix.python-version }}
19
15
uses : actions/setup-python@v2
20
16
with :
21
- python-version : ${{ matrix.python-version }}
17
+ python-version : 3.9
22
18
- name : Install dependencies
23
19
run : python -m pip install build
24
20
- name : Create packages
25
21
run : python -m build .
26
22
- uses : actions/upload-artifact@v2
27
23
with :
28
- name : dist-${{ matrix.os }}-${{ matrix.python-version }}
24
+ name : dist
29
25
path : dist
30
26
- name : Publish package
31
- if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && matrix.python-version == 'pypy3' && runner.os == 'Linux'
27
+ if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
32
28
uses : pypa/gh-action-pypi-publish@master
33
29
with :
34
30
user : __token__
35
31
password : ${{ secrets.pypi_password }}
32
+ - name : Create Release Notes
33
+ if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
34
+
35
+ with :
36
+ github-token : ${{ secrets.GITHUB_TOKEN }}
37
+ script : |
38
+ await github.request(`POST /repos/${{ github.repository }}/releases`, {
39
+ tag_name: "${{ github.ref }}",
40
+ generate_release_notes: true
41
+ });
You can’t perform that action at this time.
0 commit comments