👷 Update build theme workflow

pull/368/head
James Panther 2022-11-14 14:40:19 +11:00
parent 4ab8a47b10
commit 43026f0267
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
1 changed files with 36 additions and 10 deletions

View File

@ -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