From e75ff020e46a60f6638ed8f748fc50202159aec8 Mon Sep 17 00:00:00 2001 From: Melissa LeBlanc-Williams Date: Mon, 15 Apr 2024 13:54:10 -0700 Subject: [PATCH 1/2] Pin python version to 3.11 --- .github/workflows/build.yml | 4 ++-- .github/workflows/release.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1e6098f..d936fda 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,10 +18,10 @@ jobs: awk -F '\/' '{ print tolower($2) }' | tr '_' '-' ) >> $GITHUB_OUTPUT - - name: Set up Python 3.x + - name: Set up Python 3.11 uses: actions/setup-python@v4 with: - python-version: '3.x' + python-version: '3.11' - name: Versions run: | python3 --version diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 88542af..3c1fd31 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,7 +21,7 @@ jobs: if: contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml') uses: actions/setup-python@v4 with: - python-version: '3.x' + python-version: '3.11' - name: Install dependencies if: contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml') run: | From 163cccd4bf1a15ac6f0bb9d39c70960ee77c49bf Mon Sep 17 00:00:00 2001 From: Melissa LeBlanc-Williams Date: Mon, 15 Apr 2024 14:01:13 -0700 Subject: [PATCH 2/2] Add release drafter --- .github/release-drafter.yml | 13 +++++++++++++ .github/workflows/release-drafter.yml | 25 +++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 .github/release-drafter.yml create mode 100644 .github/workflows/release-drafter.yml diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..f5b563b --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,13 @@ +# SPDX-FileCopyrightText: 2023 Melissa LeBlanc-Williams, written for Adafruit Industries +# +# SPDX-License-Identifier: MIT + +change-template: "- $TITLE #$NUMBER by @$AUTHOR" +template: | + ## What's Changed + + $CHANGES + + To use in CPython, `pip3 install Adafruit-Python-Shell`. + + Read the [docs](https://circuitpython.readthedocs.io/projects/shell/en/latest/) for info on how to use it. diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000..bc9d42f --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,25 @@ +# SPDX-FileCopyrightText: 2023 Melissa LeBlanc-Williams, written for Adafruit Industries +# +# SPDX-License-Identifier: MIT + +name: Release Drafter + +on: + push: + branches: + - main + +permissions: + contents: read + +jobs: + update_release_draft: + permissions: + # write permission is required to create a github release + contents: write + pull-requests: read + runs-on: ubuntu-latest + steps: + - uses: release-drafter/release-drafter@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}