Skip to content

Commit

Permalink
Merge pull request #9 from Work-Plate/develop
Browse files Browse the repository at this point in the history
Deploy
  • Loading branch information
sayyyho authored Nov 11, 2024
2 parents 8916c74 + 73b719c commit 528e10f
Show file tree
Hide file tree
Showing 58 changed files with 4,193 additions and 258 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CD

on:
push:
branches: ["main"]

jobs:
build:
runs-on: ubuntu-latest
container:
image: pandoc/latex

steps:
- uses: actions/checkout@v3

- name: creates output
run: sh ./build.sh

- name: Pushes to origin repository
id: push_directory
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.AUTO_ACTIONS }}
with:
source-directory: "output"
destination-github-username: sayyyho
destination-repository-name: WorkPlate-Client
user-email: "[email protected]"
commit-message: "[Update] WorkPlate is updated upstream/main -> origin/main by the trigger"

- name: Test get variable exported by push-to-another-repository
run: echo $DESTINATION_CLONED_DIRECTORY
9 changes: 9 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
!/bin/sh

cd ../

mkdir -p output

cp -R ./WorkPlate-Client/* ./output

cp -R ./output ./WorkPlate-Client
30 changes: 26 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,35 @@
<!doctype html>
<html lang="en">
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="icon" type="image/svg+xml" href="/icons/favicon-196x196.png" />
<!-- iOS의 '홈 화면에 추가'에서 사용할 아이콘 설정 -->
<link rel="apple-touch-icon" href="/icons/apple-touch-icon-144x144.png" />
<!-- PWA에서 사용하는 manifest 파일을 참조 -->
<link rel="manifest" href="/manifest.json" />
<meta name="theme-color" content="#ffffff" />
<meta name="description" content="밥상일터" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React</title>
<title>밥상일터</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
<script>
if ("serviceWorker" in navigator) {
// Register a service worker hosted at the root of the
// site using the default scope.
navigator.serviceWorker
.register("/sw.js")
.then((registration) => {
console.log("Service worker registration succeeded:", registration);
})
.catch((err) => {
console.log("Service worker registration failed:", error);
});
} else {
console.log("Service workers are not supported.");
}
</script>
</body>
</html>
Loading

0 comments on commit 528e10f

Please sign in to comment.