Skip to content

Commit f52b753

Browse files
authored
Merge pull request #80 from codeit-fe16-part4-team2/chore/TRI-88
chore: vercel Preview
2 parents 173010d + 37f9d74 commit f52b753

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.github/workflows/deploy.yaml

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

build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
cd ../
3+
mkdir output
4+
cp -R ./triptrivera/* ./output
5+
cp -R ./output ./triptrivera/

0 commit comments

Comments
 (0)