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:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Dump GitHub context
|
|
|
|
env:
|
|
|
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
|
|
|
run: echo "$GITHUB_CONTEXT"
|
2020-04-01 17:13:19 -04:00
|
|
|
- name: Set up Python 3.8
|
2019-08-15 03:07:29 -04:00
|
|
|
uses: actions/setup-python@v1
|
|
|
|
with:
|
2020-04-01 17:13:19 -04:00
|
|
|
python-version: 3.8
|
2019-08-15 03:07:29 -04:00
|
|
|
- name: Install deps
|
|
|
|
run: |
|
2020-05-30 05:44:13 -04:00
|
|
|
pip install requests sh click
|
2019-08-15 03:07:29 -04:00
|
|
|
- name: Versions
|
|
|
|
run: |
|
|
|
|
gcc --version
|
|
|
|
python3 --version
|
2020-06-14 19:54:05 -04:00
|
|
|
- uses: actions/checkout@v2.2.0
|
2019-08-15 03:07:29 -04:00
|
|
|
with:
|
|
|
|
submodules: true
|
2020-03-23 09:40:20 -04:00
|
|
|
fetch-depth: 0
|
|
|
|
- run: git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
|
2019-08-15 03:07:29 -04:00
|
|
|
- name: CircuitPython version
|
2020-03-23 09:40:20 -04:00
|
|
|
run: git describe --dirty --tags
|
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 }}
|
2019-09-03 17:50:33 -04:00
|
|
|
ADABOT_GITHUB_ACCESS_TOKEN: ${{ secrets.BLINKA_GITHUB_ACCESS_TOKEN }}
|
2019-08-15 03:07:29 -04:00
|
|
|
if: github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested')
|