transifex-push-resources.yml 668 B

123456789101112131415161718192021222324
  1. name: Upload resources to Transifex
  2. on:
  3. push:
  4. branches:
  5. - master
  6. paths:
  7. - src/**
  8. jobs:
  9. build:
  10. runs-on: ubuntu-latest
  11. steps:
  12. - name: Checkout code
  13. uses: actions/checkout@v2
  14. - uses: actions/setup-node@v2-beta
  15. with:
  16. node-version: '15'
  17. - name: Update locale files
  18. run: yarn && yarn copyI18n
  19. - name: Upload to Transifex
  20. run: 'curl -i -L --user api:$TRANSIFEX_TOKEN -X PUT -F file=@dist/_locales/en/messages.json https://www.transifex.com/api/2/project/violentmonkey-nex/resource/messagesjson/content/'
  21. env:
  22. TRANSIFEX_TOKEN: ${{ secrets.TRANSIFEX_TOKEN }}