Skip to content

Commit

Permalink
update: 没必要两个ci,合并成一个
Browse files Browse the repository at this point in the history
  • Loading branch information
chenxuuu committed Nov 4, 2023
1 parent 12bff24 commit d4e96d9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 56 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/translate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,18 @@ jobs:
rm -rf translated-docs/
mkdir translated-docs/
dotnet run --project translate-tool/translate-tool/ -- ../luatos-wiki/ translated-docs/ translation-data/ $ALIYUN_SID $ALIYUN_SKEY
- name: build html
run: |
sudo apt update
sudo pip3 install setuptools
sudo pip3 install -r translated-docs/requirements.txt
rm -rf docs/
sphinx-build -b html translated-docs docs -E
cd docs/
touch .nojekyll
echo "wiki.luatos.org" > "CNAME"
rm -rf .doctrees/
rm -rf _sources/
- name: commit changes
run: |
git config --global credential.helper store
Expand All @@ -52,10 +64,5 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
- name: trigger update
env:
S_GITHUB_TOKEN: ${{ secrets.S_GITHUB_TOKEN }}
run: |
curl -X POST -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/openLuat/luatos-wiki-en/dispatches -H "Authorization: token $S_GITHUB_TOKEN" -d '{"event_type": "webhook-update-action"}'


51 changes: 0 additions & 51 deletions .github/workflows/update-page.yml

This file was deleted.

0 comments on commit d4e96d9

Please sign in to comment.