update docs to use sidebar; update browser ext icon #1
This file contains hidden or 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
| # This workflow copies table-sort.js from src to public and npm folders when shipping | |
| name: Copy table-sort.js | |
| on: | |
| push: | |
| branches: [master] | |
| paths: | |
| - "src/table-sort.js" | |
| jobs: | |
| copy-table-sort: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Copy table-sort.js to distribution folders | |
| run: | | |
| cp src/table-sort.js public/table-sort.js | |
| cp src/table-sort.js npm/table-sort.js | |
| cp src/table-sort.js browser-extensions/firefox/table-sort.js | |
| cp src/table-sort.js browser-extensions/chrome/table-sort.js | |
| - name: Commit changes | |
| run: | | |
| git config --local user.email "[email protected]" | |
| git config --local user.name "GitHub Action" | |
| git add public/table-sort.js npm/table-sort.js browser-extensions/*/table-sort.js | |
| git diff --staged --quiet || git commit -m "Copy table-sort.js to distribution folders" | |
| git push |