Fix release CI files
This commit is contained in:
parent
7345a430ad
commit
e6fb09a123
3 changed files with 20 additions and 11 deletions
14
.github/workflows/release_gh.yml
vendored
14
.github/workflows/release_gh.yml
vendored
|
@ -2,13 +2,17 @@
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
name: Build CI
|
name: GitHub Release Actions
|
||||||
|
|
||||||
on: [pull_request, push]
|
on:
|
||||||
|
release:
|
||||||
|
types: [published]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
upload-release-assets:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Run Build CI workflow
|
- name: Run GitHub Release CI workflow
|
||||||
uses: adafruit/workflows-circuitpython-libs/build@main
|
uses: adafruit/workflows-circuitpython-libs/release-gh@main
|
||||||
|
with:
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
15
.github/workflows/release_pypi.yml
vendored
15
.github/workflows/release_pypi.yml
vendored
|
@ -2,13 +2,18 @@
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
name: Build CI
|
name: PyPI Release Actions
|
||||||
|
|
||||||
on: [pull_request, push]
|
on:
|
||||||
|
release:
|
||||||
|
types: [published]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
upload-release-assets:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Run Build CI workflow
|
- name: Run PyPI Release CI workflow
|
||||||
uses: adafruit/workflows-circuitpython-libs/build@main
|
uses: adafruit/workflows-circuitpython-libs/release-pypi@main
|
||||||
|
with:
|
||||||
|
pypi-username: ${{ secrets.pypi_username }}
|
||||||
|
pypi-password: ${{ secrets.pypi_password }}
|
||||||
|
|
|
@ -39,7 +39,7 @@ class PN532_I2C(PN532):
|
||||||
self._i2c = i2c_device.I2CDevice(i2c, _I2C_ADDRESS)
|
self._i2c = i2c_device.I2CDevice(i2c, _I2C_ADDRESS)
|
||||||
super().__init__(debug=debug, irq=irq, reset=reset)
|
super().__init__(debug=debug, irq=irq, reset=reset)
|
||||||
|
|
||||||
def _wakeup(self): # pylint: disable=no-self-use
|
def _wakeup(self):
|
||||||
"""Send any special commands/data to wake up PN532"""
|
"""Send any special commands/data to wake up PN532"""
|
||||||
if self._reset_pin:
|
if self._reset_pin:
|
||||||
self._reset_pin.value = True
|
self._reset_pin.value = True
|
||||||
|
|
Loading…
Reference in a new issue