mirror of
https://github.com/neosubhamoy/neosubhamoy-portfolio.git
synced 2025-12-19 11:12:58 +05:30
(ci/cd): added steps to minify tailwindcss while deploying to production
This commit is contained in:
9
.github/workflows/main.yml
vendored
9
.github/workflows/main.yml
vendored
@@ -12,6 +12,15 @@ jobs:
|
||||
- name: 🚚 Get latest code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: 📦 Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
|
||||
- name: 🛠️ Run Build Process
|
||||
run: |
|
||||
npx tailwindcss -o "./htdocs/assets/style.css" --minify
|
||||
|
||||
- name: 📦 Update Database
|
||||
run: |
|
||||
mysql -h ${{ secrets.DB_HOST }} --port 3306 -u${{ secrets.DB_USERNAME }} -p${{ secrets.DB_PASSWORD }} -D${{ secrets.DB_NAME }} -e "source drop_script.sql"
|
||||
|
||||
Reference in New Issue
Block a user