Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

build: Upload Glossary on merge to master #240

Merged
merged 1 commit into from
Mar 15, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/glossary.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Upload Crowdin Glossary

on:
push:
branches:
- master
paths:
- "crowdin-glossary.json"
- "script/upload-crowdin-glossary.js"
- "package.json"
- "package-lock.json"
- ".github/workflows/glossary.yml"

jobs:
glossary:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v1
with:
node-version: "12.x"

- name: Cache node modules
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-

- name: Install
run: npm ci

- name: Upload Glossary
run: npm run upload-crowdin-glossary
env:
CROWDIN_KEY: ${{ secrets.CROWDIN_KEY }}