mirror of
https://github.com/kevquirk/simple.css.git
synced 2026-11-30 16:48:18 +01:00
30 lines
755 B
YAML
30 lines
755 B
YAML
name: Minify & Deploy to CDN
|
|
|
|
on:
|
|
push
|
|
|
|
jobs:
|
|
minify:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Auto Minify
|
|
uses: nizarmah/auto-minify@master
|
|
|
|
# Auto commits minified files to the repository
|
|
# Ignore it if you don't want to commit the files to the repository
|
|
- name: Auto committing minified files
|
|
uses: stefanzweifel/git-auto-commit-action@v3.0.0
|
|
with:
|
|
commit_message: "Github Action: Auto Minified JS and CSS files"
|
|
branch: ${{ github.ref }}
|
|
|
|
# FTP files to BunnyCDN
|
|
- name: Upload ftp
|
|
uses: sebastianpopp/ftp-action@releases/v2
|
|
with:
|
|
host: storage.bunnycdn.com
|
|
user: simple-css
|
|
password: ${{ secrets.bunny_api_key }}
|