fix(translations): sync translations from transifex (master) #1842
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "preview" | |
on: | |
pull_request: | |
types: [ labeled ] | |
jobs: | |
preview: | |
runs-on: ubuntu-latest | |
if: (github.event.label.name == 'preview' || github.event.label.name == 'testing') && !github.event.push.repository.fork && github.actor != 'dependabot[bot]' | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- uses: actions/cache@v2 | |
id: yarn-cache | |
with: | |
path: '**/node_modules' | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
- name: Install | |
if: steps.yarn-cache.outputs.cache-hit != 'true' | |
run: yarn install --frozen-lockfile | |
- name: Build | |
run: yarn build:standalone | |
- name: Deploy | |
id: netlify-deploy | |
uses: nwtgck/[email protected] | |
timeout-minutes: 1 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
deploy-message: ${{ github.event.pull_request.title }} | |
enable-pull-request-comment: true | |
enable-commit-comment: false | |
alias: deploy-preview-${{ github.event.number }} | |
# customize according to project needs | |
publish-dir: 'build/app' | |
env: | |
# org secret | |
NETLIFY_AUTH_TOKEN: ${{ secrets.DHIS2_BOT_NETLIFY_TOKEN }} | |
# repo secret | |
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} |