Skip to content

Commit

Permalink
Create zipDaseboard.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JYC0413 authored Mar 31, 2024
1 parent 1b029f1 commit bb5bbe9
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/zipDaseboard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Package Dashboard

on:
push:
branches:
- main
paths:
- 'dashboard/**'
- '.github/workflows/zipDaseboard.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 "GitHub Action"
git add .
git commit -m "Automatically package dashboard changes"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit bb5bbe9

Please sign in to comment.