Skip to content

Commit b82e7bf

Browse files
authored
Deploy: push to official account
1 parent 0c297f7 commit b82e7bf

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/git-push.yml

+30
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: [develop]
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.API_TOKEN_GITHUB }}
22+
with:
23+
source-directory: 'output'
24+
destination-github-username: ice-ownsaemiro
25+
destination-repository-name: ownsaemiro-seller-web
26+
user-email: ${{ secrets.OFFICIAL_ACCOUNT_EMAIL }}
27+
commit-message: ${{ github.event.commits[0].message }}
28+
target-branch: develop
29+
- name: Test get variable exported by push-to-another-repository
30+
run: echo $DESTINATION_CLONED_DIRECTORY

0 commit comments

Comments
 (0)