-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from Work-Plate/develop
Deploy
- Loading branch information
Showing
58 changed files
with
4,193 additions
and
258 deletions.
There are no files selected for viewing
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
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 |
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
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 |
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
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> |
Oops, something went wrong.