From 43026f02676b3e5e4f99849462fb0d16601c22f5 Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Mon, 14 Nov 2022 14:40:19 +1100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Update=20build=20theme=20workflo?= =?UTF-8?q?w?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-theme.yml | 46 ++++++++++++++++++++++++------- 1 file changed, 36 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-theme.yml b/.github/workflows/build-theme.yml index a940956c..2b2f564f 100644 --- a/.github/workflows/build-theme.yml +++ b/.github/workflows/build-theme.yml @@ -12,15 +12,41 @@ jobs: - name: Install dependencies and Build Theme uses: actions/setup-node@v3 - run: npm install - - run: npm run build - - name: Commit and push CSS changes - uses: devops-infra/action-commit-push@master - with: - github_token: "${{ secrets.GITHUB_TOKEN }}" - commit_message: "💄 Rebuild CSS" - run: npm run assets - - name: Commit and push vendor changes - uses: devops-infra/action-commit-push@master + - name: Commit and push Chart.js changes + uses: stefanzweifel/git-auto-commit-action@v4 with: - github_token: "${{ secrets.GITHUB_TOKEN }}" - commit_message: "📦 Update packaged assets" + branch: "${{ github.head_ref }}" + push_options: "--dry-run" + file_pattern: "assets/lib/chart/*" + commit_message: "📦 Update packaged ChartJS" + - name: Commit Fuse changes + uses: stefanzweifel/git-auto-commit-action@v4 + with: + branch: "${{ github.head_ref }}" + push_options: "--dry-run" + file_pattern: "assets/lib/fuse/*" + commit_message: "📦 Update packaged FuseJS" + - name: Commit KaTeX changes + uses: stefanzweifel/git-auto-commit-action@v4 + with: + branch: "${{ github.head_ref }}" + push_options: "--dry-run" + file_pattern: "assets/lib/katex/*" + commit_message: "📦 Update packaged KaTeX" + - name: Commit Mermaid changes + uses: stefanzweifel/git-auto-commit-action@v4 + with: + branch: "${{ github.head_ref }}" + push_options: "--dry-run" + file_pattern: "assets/lib/mermaid/*" + commit_message: "📦 Update packaged Mermaid" + - run: npm run build + - name: Commit CSS changes + uses: stefanzweifel/git-auto-commit-action@v4 + with: + branch: "${{ github.head_ref }}" + push_options: "--dry-run" + file_pattern: "assets/css/compiled/main.css" + commit_message: "💄 Rebuild CSS" + - run: git push