Skip to content

Commit 8b02cfa

Browse files
committed
Add caching for yarn and crowdin
1 parent d3c9271 commit 8b02cfa

File tree

2 files changed

+23
-9
lines changed

2 files changed

+23
-9
lines changed

.github/workflows/main.yml

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,34 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v1
1515

16+
- uses: actions/cache@v1
17+
with:
18+
path: crowdin.deb
19+
key: ${{ runner.os }}-crowdin
20+
restore-keys: |
21+
${{ runner.os }}-crowdin
22+
23+
- name: Get yarn cache
24+
id: yarn-cache
25+
run: echo "::set-output name=dir::$(yarn cache dir)"
26+
27+
- uses: actions/cache@v1
28+
with:
29+
path: ${{ steps.yarn-cache.outputs.dir }}
30+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
31+
restore-keys: |
32+
${{ runner.os }}-yarn-
33+
1634
- name: Use Node.js 10
1735
uses: actions/setup-node@v1
1836
with:
19-
version: 10
20-
21-
- name: Use Yarn
22-
run: |
23-
curl -o- -L https://yarnpkg.com/install.sh | bash
37+
node-version: 10
2438

2539
- name: Use crowdin
2640
run: |
27-
wget https://artifacts.crowdin.com/repo/deb/crowdin.deb -O crowdin.deb
41+
wget -c https://artifacts.crowdin.com/repo/deb/crowdin.deb -O crowdin.deb
42+
pwd
43+
ls
2844
sudo dpkg -i crowdin.deb
2945
3046
- name: Install dependencies
@@ -39,7 +55,7 @@ jobs:
3955
yarn --cwd website crowdin-upload
4056
yarn --cwd website crowdin-download
4157
42-
- name: Publish
58+
- name: Publish to Github pages
4359
env:
4460
GITHUB_TOKEN: ${{ secrets.DEPLOY_GITHUB_TOKEN }}
4561
GITHUB_EMAIL: ${{ secrets.DEPLOY_GITHUB_EMAIL }}

docs/next-steps.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,4 @@ The rest of the documentation is organized around specific use cases, so you can
1010

1111
While most users won't need to do this, if you are curious and want to learn more about how React Navigation works, it's recommended to work through the "Build your own Navigator" section.
1212

13-
Lastly, you might want to bookmark the [API reference](api-reference.html) page for future reference.
14-
1513
Good luck!

0 commit comments

Comments
 (0)