Build and deploy chatbot-ui #6
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: Package Dashboard | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'dashboard/**' | |
- '.github/workflows/zipDashboard.yml' | |
jobs: | |
package_dashboard: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Install zip | |
run: sudo apt-get install zip -y | |
- name: Package dashboard | |
run: zip -r dashboard.zip dashboard | |
- name: Commit changes | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "JYC0413" | |
git add . | |
git commit -m "Automatically package dashboard changes" | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.ACTION_TOKEN }} |