Skip to content

Commit 5797892

Browse files
committed
ci: fix deploy (openssl legacy)
1 parent ee6f48d commit 5797892

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.github/workflows/cd.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,25 @@ name: Deploy Website
33
on:
44
push:
55
branches:
6-
- main
7-
- '*.*'
6+
- main
7+
- '*.*'
88

99
jobs:
1010
deploy:
1111
runs-on: ubuntu-latest
1212
steps:
1313

1414
- name: Checkout the website
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v3
1616
with:
1717
repository: api-platform/website
1818
ref: main
1919

2020
- name: Get yarn cache directory path
2121
id: yarn-cache-dir-path
22-
run: echo "::set-output name=dir::$(yarn cache dir)"
22+
run: echo "dir="$(yarn cache dir)"" >> $GITHUB_OUTPUT
2323

24-
- uses: actions/cache@v2
24+
- uses: actions/cache@v3
2525
id: yarn-cache
2626
with:
2727
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
@@ -38,6 +38,7 @@ jobs:
3838
- name: Build website
3939
env:
4040
GITHUB_KEY: ${{ secrets.CONTRIBUTORS_GITHUB_TOKEN }}
41+
NODE_OPTIONS: --openssl-legacy-provider
4142
run: yarn gatsby build
4243

4344
- name: Deploy

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v3
1515
with:
1616
fetch-depth: 0
1717

@@ -24,7 +24,7 @@ jobs:
2424
DEFAULT_BRANCH: main
2525
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2626

27-
- uses: actions/cache@v2
27+
- uses: actions/cache@v3
2828
with:
2929
path: ~/.cache/pip
3030
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}

0 commit comments

Comments
 (0)