From dfb0ffe7a138f57992cd32aed5d9a0a85a4cfd49 Mon Sep 17 00:00:00 2001 From: Nick Schonning Date: Sun, 15 Mar 2020 00:57:15 -0400 Subject: [PATCH] build: Upload Glossary on merge to master --- .github/workflows/glossary.yml | 38 ++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/glossary.yml diff --git a/.github/workflows/glossary.yml b/.github/workflows/glossary.yml new file mode 100644 index 0000000000000..2387045f3dda3 --- /dev/null +++ b/.github/workflows/glossary.yml @@ -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 }}