@@ -11,49 +11,38 @@ jobs:
1111 runs-on : ubuntu-latest
1212
1313 steps :
14- - uses : actions/checkout@v1
15-
16- - name : Use Node.js 12.13
17- uses : actions/setup-node@v1
18- with :
19- node-version : 12.13
20-
21- - name : Restore yarn cache
22- id : yarn-cache
23- uses : actions/cache@master
24- with :
25- path : ' **/node_modules'
26- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
27-
28- - name : Install dependencies
29- if : steps.yarn-cache.outputs.cache-hit != 'true'
30- run : yarn install --frozen-lockfile
31-
32- # - name: Use crowdin
33- # run: |
34- # wget -c https://artifacts.crowdin.com/repo/deb/crowdin.deb -O crowdin.deb
35- # sudo dpkg -i crowdin.deb
36-
37- # - name: Sync with crowdin
38- # env:
39- # CROWDIN_DOCUSAURUS_PROJECT_ID: react-navigation
40- # CROWDIN_DOCUSAURUS_API_KEY: ${{ secrets.CROWDIN_DOCUSAURUS_API_KEY }}
41- # run: |
42- # yarn crowdin-upload
43- # yarn crowdin-download
44-
45- - name : Update sponsors list
46- env :
47- GITHUB_TOKEN : ${{ secrets.DEPLOY_GITHUB_TOKEN }}
48- run : yarn fetch-sponsors
49- - name : Publish to Github pages
50- env :
51- GITHUB_TOKEN : ${{ secrets.DEPLOY_GITHUB_TOKEN }}
52- GITHUB_EMAIL : ${{ secrets.DEPLOY_GITHUB_EMAIL }}
53- GIT_USER : ${{ secrets.DEPLOY_GITHUB_USER }}
54- CURRENT_BRANCH : $GITHUB_REF
55- run : |
56- git config --global user.email "$GITHUB_EMAIL"
57- git config --global user.name "$GITHUB_ACTOR"
58- echo "machine github.com login $GIT_USER password $GITHUB_TOKEN" > ~/.netrc
59- yarn deploy
14+ - name : Checkout
15+ uses : actions/checkout@v3
16+
17+ - name : Setup
18+ uses : ./.github/actions/setup
19+
20+ # - name: Use crowdin
21+ # run: |
22+ # wget -c https://artifacts.crowdin.com/repo/deb/crowdin.deb -O crowdin.deb
23+ # sudo dpkg -i crowdin.deb
24+
25+ # - name: Sync with crowdin
26+ # env:
27+ # CROWDIN_DOCUSAURUS_PROJECT_ID: react-navigation
28+ # CROWDIN_DOCUSAURUS_API_KEY: ${{ secrets.CROWDIN_DOCUSAURUS_API_KEY }}
29+ # run: |
30+ # yarn crowdin-upload
31+ # yarn crowdin-download
32+
33+ - name : Update sponsors list
34+ env :
35+ GITHUB_TOKEN : ${{ secrets.DEPLOY_GITHUB_TOKEN }}
36+ run : yarn fetch-sponsors
37+
38+ - name : Publish to Github pages
39+ env :
40+ GITHUB_TOKEN : ${{ secrets.DEPLOY_GITHUB_TOKEN }}
41+ GITHUB_EMAIL : ${{ secrets.DEPLOY_GITHUB_EMAIL }}
42+ GIT_USER : ${{ secrets.DEPLOY_GITHUB_USER }}
43+ CURRENT_BRANCH : $GITHUB_REF
44+ run : |
45+ git config --global user.email "$GITHUB_EMAIL"
46+ git config --global user.name "$GITHUB_ACTOR"
47+ echo "machine github.com login $GIT_USER password $GITHUB_TOKEN" > ~/.netrc
48+ yarn deploy
0 commit comments