.github/workflows/Chrome-Autobuild.yml #8
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
on: | |
workflow_dispatch: | |
jobs: | |
update_chrome_build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 14 | |
- run: npm install | |
- run: npm install webpack | |
- run: npm install -D webpack-cli | |
- run: npm run build | |
- run: git config --global user.name 'Edward' | |
- run: git config --global user.email '[email protected]' | |
- run: git add . | |
- run: git add dist/main.js -f | |
- run: git checkout -b temp | |
- run: git commit -m "update" | |
- run: git clean -xdf | |
- run: git checkout Chrome-build | |
- run: git checkout temp dist | |
- run: git checkout temp manifest.json | |
- run: git add . | |
- run: git commit -m "update from master" | |
- run: git push | |