circuitpython/.github/workflows/create_website_pr.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
1.1 KiB
YAML
Raw Normal View History

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
name: Update CircuitPython.org
on:
release:
2023-01-20 23:54:08 -05:00
types: [published, rerequested]
jobs:
website:
2023-01-20 23:54:08 -05:00
runs-on: ubuntu-22.04
steps:
- name: Dump GitHub context
2023-01-20 23:54:08 -05:00
run: echo "$GITHUB_CONTEXT"
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
2023-01-20 23:54:08 -05:00
- name: Set up repository
uses: actions/checkout@v3
with:
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
with:
2022-11-13 10:26:16 -05:00
python-version: "3.x"
- name: Set up submodules
uses: ./.github/actions/fetch_submodules
with:
version: true
2023-01-20 23:54:08 -05:00
- name: Install dependencies
run: pip install -r requirements-dev.txt
- 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 }}
ADABOT_GITHUB_ACCESS_TOKEN: ${{ secrets.ADABOT_GITHUB_ACCESS_TOKEN }}