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:
|
2023-01-20 23:54:08 -05:00
|
|
|
types: [published, rerequested]
|
2019-08-15 03:07:29 -04:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
website:
|
2023-01-20 23:54:08 -05:00
|
|
|
runs-on: ubuntu-22.04
|
2019-08-15 03:07:29 -04:00
|
|
|
steps:
|
|
|
|
- name: Dump GitHub context
|
2023-01-20 23:54:08 -05:00
|
|
|
run: echo "$GITHUB_CONTEXT"
|
2019-08-15 03:07:29 -04:00
|
|
|
env:
|
|
|
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
2023-01-20 23:54:08 -05:00
|
|
|
- name: Set up repository
|
|
|
|
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
|
2023-01-20 23:54:08 -05:00
|
|
|
- name: Set up python
|
2022-10-11 01:15:22 -04:00
|
|
|
uses: actions/setup-python@v4
|
2019-08-15 03:07:29 -04:00
|
|
|
with:
|
2023-02-11 01:30:27 -05:00
|
|
|
python-version: 3.x
|
2023-01-28 05:00:04 -05:00
|
|
|
- name: Set up submodules
|
2023-02-11 01:30:27 -05:00
|
|
|
uses: ./.github/actions/deps/submodules
|
2023-01-28 05:00:04 -05:00
|
|
|
with:
|
|
|
|
version: true
|
2023-02-11 01:30:27 -05:00
|
|
|
- name: Set up external
|
|
|
|
uses: ./.github/actions/deps/external
|
2019-08-15 03:07:29 -04:00
|
|
|
- name: Versions
|
|
|
|
run: |
|
|
|
|
gcc --version
|
|
|
|
python3 --version
|
|
|
|
- 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 }}
|