minify on build #336
Workflow file for this run
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: DEVELOP build and deploy | ||
on: | ||
push: | ||
branches: | ||
- dev | ||
- 'issue/*' | ||
- 'feature/*' | ||
- 'hotfix/*' | ||
jobs: | ||
build-and-deploy: | ||
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession. | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Install and Build | ||
run: | | ||
cd _buildscripts | ||
/usr/bin/python3 ./build.py -c build_dev.ini | ||
- name: Auto Minify | ||
uses: nizarmah/auto-minify@v2.1 | ||
with: | ||
directory: 'build' | ||
output: 'mini' | ||
- name: Deploy | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
folder: build # The folder the action should deploy. | ||
branch: gh-pages # The branch the action should deploy to. | ||
target-folder: dev | ||
single-commit: true # need no history | ||
with: | ||
folder: 'mini' | ||
branch: gh-pages # The branch the action should deploy to. | ||
target-folder: mini | ||
clean-exclude: dev # preserve the dev folder |