2020-06-03 18:40:05 -04:00
|
|
|
# SPDX-FileCopyrightText: 2014 MicroPython & CircuitPython contributors (https://github.com/adafruit/circuitpython/graphs/contributors)
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
|
2019-08-15 03:07:29 -04:00
|
|
|
name: Update CircuitPython.org
|
|
|
|
|
2019-10-14 23:16:59 -04:00
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types: [published]
|
2019-08-15 03:07:29 -04:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
website:
|
2020-11-17 10:01:50 -05:00
|
|
|
runs-on: ubuntu-20.04
|
2019-08-15 03:07:29 -04:00
|
|
|
steps:
|
|
|
|
- name: Dump GitHub context
|
|
|
|
env:
|
|
|
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
|
|
|
run: echo "$GITHUB_CONTEXT"
|
2022-10-11 01:15:22 -04:00
|
|
|
- uses: actions/checkout@v3
|
2021-04-01 08:30:56 -04:00
|
|
|
with:
|
2021-08-04 19:27:54 -04:00
|
|
|
submodules: false
|
|
|
|
fetch-depth: 1
|
2021-12-20 19:28:09 -05:00
|
|
|
- name: Set up Python 3
|
2022-10-11 01:15:22 -04:00
|
|
|
uses: actions/setup-python@v4
|
2019-08-15 03:07:29 -04:00
|
|
|
with:
|
2022-11-02 20:23:52 -04:00
|
|
|
python-version: "3.10"
|
2021-08-04 19:27:54 -04:00
|
|
|
- name: Get CP deps
|
2021-12-07 18:57:06 -05:00
|
|
|
run: python tools/ci_fetch_deps.py website ${{ github.sha }}
|
2019-08-15 03:07:29 -04:00
|
|
|
- name: Install deps
|
|
|
|
run: |
|
2021-03-19 18:22:23 -04:00
|
|
|
pip install -r requirements-dev.txt
|
2019-08-15 03:07:29 -04:00
|
|
|
- name: Versions
|
|
|
|
run: |
|
|
|
|
gcc --version
|
|
|
|
python3 --version
|
|
|
|
- name: CircuitPython version
|
2021-12-29 15:33:45 -05:00
|
|
|
run: |
|
|
|
|
tools/describe || git log --parents HEAD~4..
|
|
|
|
echo >>$GITHUB_ENV CP_VERSION=$(tools/describe)
|
2019-08-15 03:07:29 -04:00
|
|
|
- name: Website
|
|
|
|
run: python3 build_board_info.py
|
|
|
|
working-directory: tools
|
|
|
|
env:
|
|
|
|
RELEASE_TAG: ${{ github.event.release.tag_name }}
|
2022-05-03 16:29:54 -04:00
|
|
|
ADABOT_GITHUB_ACCESS_TOKEN: ${{ secrets.ADABOT_GITHUB_ACCESS_TOKEN }}
|
2019-08-15 03:07:29 -04:00
|
|
|
if: github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested')
|