Skip to content

Commit

Permalink
feat: migrate ci cd
Browse files Browse the repository at this point in the history
  • Loading branch information
dewanakl committed Sep 12, 2024
1 parent a5cb359 commit 174fec4
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 14 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/code-analysis.yml → .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Code Analysis
name: Code Analysis and Deploy

on: [push, pull_request]
on:
push:
branches:
- '3.x'
pull_request:
branches:
- '3.x'

jobs:
analyze-code:
Expand All @@ -19,10 +25,18 @@ jobs:
run: npm install

- name: Run ESLint (JavaScript)
run: npx eslint js
run: npx eslint "js/**/*.js"

- name: Run stylelint (CSS)
run: npx stylelint css
run: npx stylelint "css/**/*.css"

- name: Run HTMLHint (HTML)
run: npx htmlhint "**/*.html"

deploy:
needs: analyze-code
runs-on: ubuntu-latest

steps:
- name: Netlify Build Hook
run: curl -X POST ${{ secrets.NETLIFY_BUILD_HOOK_URL }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

![Thumbnail](/assets/images/banner.png)
![Thumbnail2](/assets/images/banner2.png)
[![pages-build-deployment](https://github.com/dewanakl/undangan/actions/workflows/pages/pages-build-deployment/badge.svg?branch=3.x)](https://github.com/dewanakl/undangan/actions/workflows/pages/pages-build-deployment)
[![Netlify Status](https://api.netlify.com/api/v1/badges/cef32dbf-f26f-4865-84a9-b85a439c9994/deploy-status)](https://app.netlify.com/sites/ulems/deploys)
![Hits](https://dikit.my.id/0b3y8q)

## Demo
Expand Down
8 changes: 0 additions & 8 deletions css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,6 @@
display: none;
}

svg {
transition: background-color 350ms ease;
}

svg>path {
transition: color 350ms ease;
}

.font-esthetic {
font-family: Sacramento, cursive !important;
}
Expand Down
10 changes: 9 additions & 1 deletion css/common.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
* {
transition: background-color 350ms ease, color 50ms ease;
transition: background-color 300ms ease, color 50ms ease;
}

html {
Expand All @@ -13,6 +13,14 @@ body {
overflow-x: hidden;
}

svg {
transition: background-color 300ms ease;
}

svg>path {
transition: color 300ms ease;
}

.bg-theme-light {
background-color: var(--bs-gray-100);
}
Expand Down

0 comments on commit 174fec4

Please sign in to comment.