Skip to content

Commit

Permalink
Update python-package-test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Davidham3 authored Dec 18, 2024
1 parent 39b8da9 commit 6ec4662
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/python-package-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,32 +44,3 @@ jobs:
- name: Build docs
run: |
cd docs && make -j 4 html && cd ..
- name: Get branch name
id: branch-name
run: echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT

- name: Checkout documentation repository
uses: actions/checkout@v3
with:
repository: Spatial-Temporal-Data-Mining/TrajDL-docs
token: ${{ secrets.PAT_FOR_DOCS }}
path: docs-repo
fetch-depth: 0 # 获取所有分支信息

- name: Deploy to documentation repository
run: |
cd docs-repo
git config user.name "GitHub Actions"
git config user.email "[email protected]"
git checkout -b ${{ steps.branch-name.outputs.branch }} || git checkout ${{ steps.branch-name.outputs.branch }}
# 复制文档
rm -rf * # 清空当前分支内容
cp -r ../docs/build/html/* .
# 提交更改
git add .
git commit -m "Update documentation from source repository" || echo "No changes to commit"
git push origin ${{ steps.branch-name.outputs.branch }}

0 comments on commit 6ec4662

Please sign in to comment.