Skip to content

Commit 7b199d7

Browse files
authored
infra: Create dev.yml
infra: Create dev.yml
1 parent a4cdd93 commit 7b199d7

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/dev.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: git push into another repo to deploy to vercel
2+
3+
on:
4+
push:
5+
branches: [dev]
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.HYEON_GITHUB_KEY }}
22+
with:
23+
source-directory: 'output'
24+
destination-github-username: titeotty
25+
destination-repository-name: dasom-web-frontend
26+
user-email: ${{ secrets.HYEON_ACCOUNT_EMAIL }}
27+
commit-message: ${{ github.event.commits[0].message }}
28+
target-branch: main
29+
- name: Test get variable exported by push-to-another-repository
30+
run: echo $DESTINATION_CLONED_DIRECTORY

0 commit comments

Comments
 (0)