diff options
author | Julian Berman <Julian@GrayVines.com> | 2021-10-08 18:31:08 -0400 |
---|---|---|
committer | Julian Berman <Julian@GrayVines.com> | 2021-10-08 18:31:08 -0400 |
commit | f2754e2097b69915bc82f34efb1d64996c2707f1 (patch) | |
tree | a30e4b32d344ea241ac0af33ef236cb295f49dc6 /.github | |
parent | 8090b4e639c2d6e821e7b3e8b1c9519ac3dd935b (diff) | |
download | jsonschema-f2754e2097b69915bc82f34efb1d64996c2707f1.tar.gz |
Try autocreating release notes.
See https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes
and
https://github.blog/2021-10-04-beta-github-releases-improving-release-experience/
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/packaging.yml | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/.github/workflows/packaging.yml b/.github/workflows/packaging.yml index 54c9e28..a3a2bd5 100644 --- a/.github/workflows/packaging.yml +++ b/.github/workflows/packaging.yml @@ -7,29 +7,35 @@ on: jobs: build: - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [macos-latest, ubuntu-latest] - python-version: [pypy-3.7, 3.9] + runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 with: - python-version: ${{ matrix.python-version }} + python-version: 3.9 - name: Install dependencies run: python -m pip install build - name: Create packages run: python -m build . - uses: actions/upload-artifact@v2 with: - name: dist-${{ matrix.os }}-${{ matrix.python-version }} + name: dist path: dist - name: Publish package - if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && matrix.python-version == 'pypy3' && runner.os == 'Linux' + if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@master with: user: __token__ password: ${{ secrets.pypi_password }} + - name: Create Release Notes + if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') + uses: actions/github-script@v4.0.2 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | + await github.request(`POST /repos/${{ github.repository }}/releases`, { + tag_name: "${{ github.ref }}", + generate_release_notes: true + }); |