Skip to content

Commit

Permalink
Merge pull request #1 from adafruit/dherrada-patch-1
Browse files Browse the repository at this point in the history
Updated build.yml and release.yml
  • Loading branch information
siddacious committed Jan 1, 2020
2 parents 83aa530 + 888ebef commit 4b023f5
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 9 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/build.yml
Expand Up @@ -25,15 +25,18 @@ jobs:
- name: Versions
run: |
python3 --version
- uses: actions/checkout@v1
- name: Checkout Current Repo
uses: actions/checkout@v1
with:
submodules: true
- name: Checkout tools repo
uses: actions/checkout@v2
with:
repository: adafruit/actions-ci-circuitpython-libs
path: actions-ci
- name: Install deps
run: |
sudo apt-get install -y gettext
pip install -r requirements.txt
pip install circuitpython-build-tools Sphinx sphinx-rtd-theme
pip install --force-reinstall pylint==1.9.2
source actions-ci/install.sh
- name: Library version
run: git describe --dirty --always --tags
- name: PyLint
Expand Down
19 changes: 15 additions & 4 deletions .github/workflows/release.yml
Expand Up @@ -27,14 +27,18 @@ jobs:
- name: Versions
run: |
python3 --version
- uses: actions/checkout@v1
- name: Checkout Current Repo
uses: actions/checkout@v1
with:
submodules: true
- name: Checkout tools repo
uses: actions/checkout@v2
with:
repository: adafruit/actions-ci-circuitpython-libs
path: actions-ci
- name: Install deps
run: |
sudo apt-get install -y gettext
pip install -r requirements.txt
pip install circuitpython-build-tools Sphinx sphinx-rtd-theme
source actions-ci/install.sh
- name: Build assets
run: circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --library_location .
- name: Upload Release Assets
Expand All @@ -53,15 +57,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Check For setup.py
id: need-pypi
run: |
echo ::set-output name=setup-py::$( find . -wholename './setup.py' )
- name: Set up Python
if: contains(steps.need-pypi.outputs.setup-py, 'setup.py')
uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: Install dependencies
if: contains(steps.need-pypi.outputs.setup-py, 'setup.py')
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
if: contains(steps.need-pypi.outputs.setup-py, 'setup.py')
env:
TWINE_USERNAME: ${{ secrets.pypi_username }}
TWINE_PASSWORD: ${{ secrets.pypi_password }}
Expand Down

0 comments on commit 4b023f5

Please sign in to comment.