cdn.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. name: CDN
  2. on:
  3. push:
  4. branches: main
  5. jobs:
  6. release:
  7. if: ${{startsWith(github.event.head_commit.message, 'Release')}}
  8. name: Publish releases
  9. runs-on: ubuntu-latest
  10. steps:
  11. - name: Checkout sources
  12. uses: actions/checkout@v2
  13. - name: Install Node.js
  14. uses: actions/setup-node@v2-beta
  15. with:
  16. node-version: 14.x
  17. - name: Install npm 7
  18. run: npm install --global npm@7
  19. - name: Install dependencies
  20. run: npm ci
  21. - name: Build bundles
  22. run: npm run build
  23. - name: Upload `uppy` to CDN
  24. run: npm run uploadcdn uppy
  25. env:
  26. EDGLY_KEY: ${{secrets.EDGLY_KEY}}
  27. EDGLY_SECRET: ${{secrets.EDGLY_SECRET}}
  28. - name: Upload `@uppy/robodog` to CDN
  29. run: npm run uploadcdn @uppy/robodog
  30. env:
  31. EDGLY_KEY: ${{secrets.EDGLY_KEY}}
  32. EDGLY_SECRET: ${{secrets.EDGLY_SECRET}}
  33. - name: Upload `@uppy/locales` to CDN
  34. run: npm run uploadcdn @uppy/locales
  35. env:
  36. EDGLY_KEY: ${{secrets.EDGLY_KEY}}
  37. EDGLY_SECRET: ${{secrets.EDGLY_SECRET}}