Skip to content

Commit b8915f4

Browse files
committed
DOP-5587: repo-sync for main
1 parent 6999e87 commit b8915f4

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/repo-sync.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Repo Sync
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
deploy:
13+
runs-on: ubuntu-latest
14+
environment: Copy To Public
15+
steps:
16+
- uses: actions/checkout@v3
17+
with:
18+
fetch-depth: 0
19+
- name: Set up Python 3.12
20+
uses: actions/setup-python@v3
21+
with:
22+
python-version: "3.12"
23+
- name: Install dependencies
24+
run: |
25+
python3 -m pip install --upgrade pip
26+
python3 -m pip install -r requirements.txt
27+
- name: Publish Branch
28+
run: |
29+
python3 repo_sync.py
30+
env:
31+
APP_ID: ${{ vars.APP_ID }}
32+
INSTALLATION_ID: ${{ vars.INSTALLATION_ID }}
33+
SERVER_DOCS_PRIVATE_KEY: ${{ secrets.SERVER_DOCS_PRIVATE_KEY }}

0 commit comments

Comments
 (0)