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

Commit

Permalink
build: Upload Glossary on merge to master (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
nschonni authored Mar 15, 2020
1 parent e3a6202 commit 3057a5a
Showing 1 changed file with 38 additions and 0 deletions.
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 }}

0 comments on commit 3057a5a

Please sign in to comment.