Skip to content

Commit 0e1e2a3

Browse files
authored
chore: git action to push to main + docs (#2378)
* chore: git action to push to main + docs * lint
1 parent a344864 commit 0e1e2a3

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/push-to-prod.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Push to main + docs branches
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
push_changes:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout develop branch
11+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
12+
with:
13+
persist-credentials: false
14+
ref: 'develop'
15+
fetch-depth: 0
16+
17+
- name: Generate token
18+
id: generate_token
19+
uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e
20+
with:
21+
app-id: 894214
22+
private-key: ${{ secrets.THIRDWEB_BOT_PRIVATE_KEY }}
23+
24+
- name: Push to main + docs branches
25+
env:
26+
GH_TOKEN: ${{ steps.generate_token.outputs.token }}
27+
run: |
28+
git push origin develop:main --force
29+
git push origin develop:docs --force

0 commit comments

Comments
 (0)