Skip to content

Commit 3b88fe3

Browse files
authored
Merge pull request plone#1451 from plone/fredvd-update-gha-actions
Update workflow actions
2 parents 27eae04 + 9aa2331 commit 3b88fe3

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

.github/workflows/build_deploy.yml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@ jobs:
99
build_deploy:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v1
13-
14-
- name: Set up Python ${{ matrix.python-version }}
15-
uses: actions/setup-python@v2
12+
- uses: actions/checkout@v3
13+
- name: Set up Python 3.10
14+
uses: actions/setup-python@v4
1615
with:
17-
python-version: "3.10"
18-
16+
python-version: '3.10'
17+
cache: 'pip'
1918
- name: Install dependencies
2019
run: |
2120
pip install -q -r requirements-initial.txt
@@ -32,31 +31,33 @@ jobs:
3231
run: make deploy
3332

3433
# node setup
35-
- name: Use Node.js ${{ matrix.node-version }}
36-
uses: actions/setup-node@v1
34+
- name: Use Node.js 16
35+
uses: actions/setup-node@v3
3736
with:
38-
node-version: ${{ matrix.node-version }}
37+
node-version: '16'
3938

4039
# node cache
4140
- name: Get yarn cache directory path
4241
id: yarn-cache-dir-path
4342
working-directory: submodules/volto
44-
run: echo "::set-output name=dir::$(yarn cache dir)"
45-
- uses: actions/cache@v1
43+
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
44+
- uses: actions/cache@v3
4645
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
4746
with:
4847
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
4948
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
5049
restore-keys: |
5150
${{ runner.os }}-yarn-
5251
53-
5452
- name: StoryBook build
55-
run: cd submodules/volto && yarn && yarn build-storybook -o ../../_build/html/storybook
53+
run: |
54+
cd submodules/volto
55+
yarn install --immutable
56+
yarn build-storybook -o ../../_build/html/storybook
5657
5758
- name: Deploy to server
5859
id: deploy
59-
uses: Pendect/action-rsyncer@v1.1.0
60+
uses: Pendect/action-rsyncer@v2.0.0
6061
env:
6162
DEPLOY_KEY: ${{secrets.DEPLOY_KEY_DOCS}}
6263
with:

0 commit comments

Comments
 (0)