Skip to content

Commit 2317f3e

Browse files
chaancemjackson
authored andcommitted
add website deploy action
1 parent 72b83b7 commit 2317f3e

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/website.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: website
2+
on:
3+
push:
4+
branches: [website]
5+
6+
jobs:
7+
website:
8+
if: github.repository == 'remix-run/react-router'
9+
runs-on: ubuntu-latest
10+
11+
strategy:
12+
matrix:
13+
node-version: [14.x]
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- name: Use Node.js ${{ matrix.node-version }}
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
23+
- name: Install dependencies
24+
run: yarn install --frozen-lockfile
25+
26+
- name: Build
27+
run: yarn build
28+
29+
- name: Test
30+
run: yarn test & yarn size
31+
32+
- name: Setup
33+
run: |
34+
echo "Deploying website to https://reactrouter.com/"
35+
openssl aes-256-cbc -K $encrypted_70c5e56b421c_key -iv $encrypted_70c5e56b421c_iv -in website-deploy-key.enc -out website-deploy-key -d
36+
chmod 600 website-deploy-key
37+
eval $(ssh-agent -s)
38+
ssh-add website-deploy-key
39+
40+
- name: Deploy
41+
run: bash scripts/deploy-website.sh

0 commit comments

Comments
 (0)