Skip to content

Commit e6fb09a

Browse files
committed
Fix release CI files
1 parent 7345a43 commit e6fb09a

File tree

3 files changed

+20
-11
lines changed

3 files changed

+20
-11
lines changed

.github/workflows/release_gh.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@
22
#
33
# SPDX-License-Identifier: MIT
44

5-
name: Build CI
5+
name: GitHub Release Actions
66

7-
on: [pull_request, push]
7+
on:
8+
release:
9+
types: [published]
810

911
jobs:
10-
test:
12+
upload-release-assets:
1113
runs-on: ubuntu-latest
1214
steps:
13-
- name: Run Build CI workflow
14-
uses: adafruit/workflows-circuitpython-libs/build@main
15+
- name: Run GitHub Release CI workflow
16+
uses: adafruit/workflows-circuitpython-libs/release-gh@main
17+
with:
18+
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release_pypi.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,18 @@
22
#
33
# SPDX-License-Identifier: MIT
44

5-
name: Build CI
5+
name: PyPI Release Actions
66

7-
on: [pull_request, push]
7+
on:
8+
release:
9+
types: [published]
810

911
jobs:
10-
test:
12+
upload-release-assets:
1113
runs-on: ubuntu-latest
1214
steps:
13-
- name: Run Build CI workflow
14-
uses: adafruit/workflows-circuitpython-libs/build@main
15+
- name: Run PyPI Release CI workflow
16+
uses: adafruit/workflows-circuitpython-libs/release-pypi@main
17+
with:
18+
pypi-username: ${{ secrets.pypi_username }}
19+
pypi-password: ${{ secrets.pypi_password }}

adafruit_pn532/i2c.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def __init__(self, i2c, *, irq=None, reset=None, req=None, debug=False):
3939
self._i2c = i2c_device.I2CDevice(i2c, _I2C_ADDRESS)
4040
super().__init__(debug=debug, irq=irq, reset=reset)
4141

42-
def _wakeup(self): # pylint: disable=no-self-use
42+
def _wakeup(self):
4343
"""Send any special commands/data to wake up PN532"""
4444
if self._reset_pin:
4545
self._reset_pin.value = True

0 commit comments

Comments
 (0)