Skip to content

Commit 43f396f

Browse files
authored
Merge pull request #34 from Turn-Page/develop
build: CI/CD ํ…Œ์ŠคํŠธ
2 parents 841e9df + be15afd commit 43f396f

File tree

170 files changed

+8435
-225
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

170 files changed

+8435
-225
lines changed

โ€Ž.github/workflows/deploy.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
container: pandoc/latex
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Install mustache (to update the date)
14+
run: apk add ruby && gem install mustache
15+
- name: creates output
16+
run: sh ./build.sh
17+
- name: Pushes to another repository
18+
id: push_directory
19+
uses: cpina/github-action-push-to-another-repository@main
20+
env:
21+
API_TOKEN_GITHUB: ${{ secrets.AUTO_ACTIONS }}
22+
with:
23+
source-directory: "output"
24+
destination-github-username: thgee
25+
destination-repository-name: Turnpage
26+
user-email: ${{ secrets.EMAIL }}
27+
commit-message: ${{ github.event.commits[0].message }}
28+
target-branch: main
29+
30+
- name: Test get variable exported by push-to-another-repository
31+
run: echo $DESTINATION_CLONED_DIRECTORY

โ€Ž.gitignore

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2-
31
# dependencies
42
/node_modules
53
/.pnp
@@ -21,3 +19,6 @@
2119
npm-debug.log*
2220
yarn-debug.log*
2321
yarn-error.log*
22+
23+
# env
24+
.env

โ€ŽREADME.md

-46
This file was deleted.

โ€Žbuild.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
cd ../
3+
mkdir output
4+
cp -R ./Client/* ./output
5+
cp -R ./output ./Client/

0 commit comments

Comments
ย (0)