Update CI

This commit is contained in:
Thomas Miceli
2026-01-29 02:01:27 +07:00
parent 6bd8df6a74
commit 84c6a41340

View File

@@ -28,20 +28,15 @@ jobs:
npx tailwindcss -i .vitepress/theme/style.css -o .vitepress/theme/theme.css -c .vitepress/tailwind.config.js npx tailwindcss -i .vitepress/theme/style.css -o .vitepress/theme/theme.css -c .vitepress/tailwind.config.js
npm run docs:build npm run docs:build
- name: Deploy to server - name: Push to docs repository
uses: appleboy/scp-action@master run: |
with: git clone https://${{ secrets.STATIC_REPO_TOKEN }}@github.com/${{ secrets.STATIC_REPO }}.git target-repo
host: ${{ secrets.SERVER_HOST }} rm -rf target-repo/srv/opengist
username: ${{ secrets.SERVER_USERNAME }} mkdir -p target-repo/srv/opengist
key: ${{ secrets.SERVER_SSH_KEY }} cp -r docs/.vitepress/dist/* target-repo/srv/opengist/
source: "docs/.vitepress/dist/*" cd target-repo
target: ${{ secrets.SERVER_PATH }} git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Update remote docs git add .
uses: appleboy/ssh-action@master git commit -m "Deploy docs from ${{ github.repository }}@${{ github.sha }}" || echo "No changes to commit"
with: git push
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USERNAME }}
key: ${{ secrets.SERVER_SSH_KEY }}
script: |
${{ secrets.UPDATE_DOCS }}