Skip to content

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

.github/workflows/packaging.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,35 @@ on:
77

88
jobs:
99
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
1511

1612
steps:
1713
- uses: actions/checkout@v2
1814
- name: Set up Python ${{ matrix.python-version }}
1915
uses: actions/setup-python@v2
2016
with:
21-
python-version: ${{ matrix.python-version }}
17+
python-version: 3.9
2218
- name: Install dependencies
2319
run: python -m pip install build
2420
- name: Create packages
2521
run: python -m build .
2622
- uses: actions/upload-artifact@v2
2723
with:
28-
name: dist-${{ matrix.os }}-${{ matrix.python-version }}
24+
name: dist
2925
path: dist
3026
- 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')
3228
uses: pypa/gh-action-pypi-publish@master
3329
with:
3430
user: __token__
3531
password: ${{ secrets.pypi_password }}
32+
- name: Create Release Notes
33+
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
34+
uses: actions/[email protected]
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+
});

0 commit comments

Comments
 (0)