8
8
test :
9
9
runs-on : ubuntu-latest
10
10
steps :
11
- - uses : actions/checkout@v2
12
- - uses : actions/setup-python@v2
11
+ - uses : actions/checkout@v3
12
+ - uses : actions/setup-python@v3
13
13
with :
14
14
python-version : " 3.10"
15
15
- uses : Gr1n/setup-poetry@v7
39
39
- python : " 3.11.0-alpha.4"
40
40
toxenv : py311-dj40
41
41
steps :
42
- - uses : actions/checkout@v2
43
- - uses : actions/setup-python@v2
42
+ - uses : actions/checkout@v3
43
+ - uses : actions/setup-python@v3
44
44
with :
45
45
python-version : ${{ matrix.python }}
46
46
- uses : Gr1n/setup-poetry@v7
@@ -54,25 +54,25 @@ jobs:
54
54
needs : test
55
55
runs-on : ubuntu-latest
56
56
steps :
57
- - uses : actions/checkout@v2
58
- - uses : actions/setup-node@v2
57
+ - uses : actions/checkout@v3
58
+ - uses : actions/setup-node@v3
59
59
with :
60
60
node-version-file : ' .nvmrc'
61
- - uses : actions/cache@v2
61
+ - id : node-cache
62
+ uses : actions/cache@v2
62
63
with :
63
- path : ~/.npm
64
- key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
65
- restore-keys : |
66
- ${{ runner.os }}-node-
67
- - run : npm install --no-optional --no-audit --no-fund --progress=false
64
+ path : node_modules
65
+ key : ${{ runner.os }}-node-${{ hashFiles('**/.nvmrc') }}-${{ hashFiles('**/package-lock.json') }}
66
+ - if : steps.node-cache.outputs.cache-hit != 'true'
67
+ run : npm ci --no-audit
68
68
- run : npm run build
69
- - uses : actions/setup-python@v2
69
+ - uses : actions/setup-python@v3
70
70
with :
71
71
python-version : " 3.10"
72
72
- uses : Gr1n/setup-poetry@v7
73
73
with :
74
74
poetry-version : ' 1.1.12'
75
- - uses : actions/cache@v2
75
+ - uses : actions/cache@v3
76
76
with :
77
77
path : ~/.cache/pip
78
78
key : ${{ runner.os }}-python-py310-${{ hashFiles('**/pyproject.toml') }}
92
92
- run : cat pyproject.toml | awk '{sub(/^version = .+/,"version = \"0.0.0.dev\"")}1' > pyproject.toml.tmp && mv pyproject.toml.tmp pyproject.toml
93
93
- run : poetry build
94
94
- run : mv dist site
95
- - uses : actions/upload-artifact@v2
95
+ - uses : actions/upload-artifact@v3
96
96
with :
97
97
name : site
98
98
path : site
@@ -102,9 +102,9 @@ jobs:
102
102
needs : build_site
103
103
if : github.event_name == 'push' && github.ref == 'refs/heads/main'
104
104
steps :
105
- - uses : actions/checkout@v2
106
- - uses : actions/download-artifact@v2
107
- - uses : JamesIves/github-pages-deploy-action@4.1 .3
105
+ - uses : actions/checkout@v3
106
+ - uses : actions/download-artifact@v3
107
+ - uses : JamesIves/github-pages-deploy-action@v4.3 .3
108
108
with :
109
109
branch : gh-pages
110
110
folder : site
0 commit comments