@@ -6,41 +6,47 @@ name: Update CircuitPython.org
66
77on :
88 release :
9- types : [published]
9+ types : [published, rerequested ]
1010
1111jobs :
1212 website :
13- runs-on : ubuntu-20 .04
13+ runs-on : ubuntu-22 .04
1414 steps :
1515 - name : Dump GitHub context
16+ run : echo "$GITHUB_CONTEXT"
1617 env :
1718 GITHUB_CONTEXT : ${{ toJson(github) }}
18- run : echo "$GITHUB_CONTEXT"
19- - uses : actions/checkout@v3
19+ - name : Set up repository
20+ uses : actions/checkout@v3
2021 with :
2122 submodules : false
2223 fetch-depth : 1
23- - name : Set up Python 3
24+ - name : Set up python
2425 uses : actions/setup-python@v4
2526 with :
2627 python-version : " 3.x"
27- - name : Get CP deps
28- run : python tools/ci_fetch_deps.py website ${{ github.sha }}
29- - name : Install deps
28+ - name : CircuitPython dependencies
29+ run : |
30+ python tools/ci_fetch_deps.py ${{ github.job }}
31+ echo "::group::Fetch history and tags"
32+ git fetch --no-recurse-submodules --shallow-since="2021-07-01" --tags https://github.com/adafruit/circuitpython HEAD
33+ git fetch --no-recurse-submodules --shallow-since="2021-07-01" origin $GITHUB_SHA
34+ git repack -d
35+ echo "::endgroup::"
36+ - name : CircuitPython version
3037 run : |
31- pip install -r requirements-dev.txt
38+ CP_VERSION=$(tools/describe)
39+ echo "$CP_VERSION"
40+ echo "CP_VERSION=$CP_VERSION" >> $GITHUB_ENV
41+ - name : Install dependencies
42+ run : pip install -r requirements-dev.txt
3243 - name : Versions
3344 run : |
3445 gcc --version
3546 python3 --version
36- - name : CircuitPython version
37- run : |
38- tools/describe || git log --parents HEAD~4..
39- echo >>$GITHUB_ENV CP_VERSION=$(tools/describe)
4047 - name : Website
4148 run : python3 build_board_info.py
4249 working-directory : tools
4350 env :
4451 RELEASE_TAG : ${{ github.event.release.tag_name }}
4552 ADABOT_GITHUB_ACCESS_TOKEN : ${{ secrets.ADABOT_GITHUB_ACCESS_TOKEN }}
46- if : github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested')
0 commit comments