@@ -6,41 +6,47 @@ name: Update CircuitPython.org
6
6
7
7
on :
8
8
release :
9
- types : [published]
9
+ types : [published, rerequested ]
10
10
11
11
jobs :
12
12
website :
13
- runs-on : ubuntu-20 .04
13
+ runs-on : ubuntu-22 .04
14
14
steps :
15
15
- name : Dump GitHub context
16
+ run : echo "$GITHUB_CONTEXT"
16
17
env :
17
18
GITHUB_CONTEXT : ${{ toJson(github) }}
18
- run : echo "$GITHUB_CONTEXT"
19
- - uses : actions/checkout@v3
19
+ - name : Set up repository
20
+ uses : actions/checkout@v3
20
21
with :
21
22
submodules : false
22
23
fetch-depth : 1
23
- - name : Set up Python 3
24
+ - name : Set up python
24
25
uses : actions/setup-python@v4
25
26
with :
26
27
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
30
37
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
32
43
- name : Versions
33
44
run : |
34
45
gcc --version
35
46
python3 --version
36
- - name : CircuitPython version
37
- run : |
38
- tools/describe || git log --parents HEAD~4..
39
- echo >>$GITHUB_ENV CP_VERSION=$(tools/describe)
40
47
- name : Website
41
48
run : python3 build_board_info.py
42
49
working-directory : tools
43
50
env :
44
51
RELEASE_TAG : ${{ github.event.release.tag_name }}
45
52
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