GHA CI: add deploy wiki script

This commit is contained in:
Chocobo1 2024-05-01 16:18:25 +08:00
parent 450cad263d
commit b0f46bd284
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
2 changed files with 39 additions and 0 deletions

11
.github/dependabot.yml vendored Normal file
View File

@ -0,0 +1,11 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
groups:
github-actions:
patterns:
- "*"
schedule:
interval: "monthly"

28
.github/workflows/deploy.yaml vendored Normal file
View File

@ -0,0 +1,28 @@
name: Deploy wiki
on:
push:
branches:
- master
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: ${{ github.head_ref != '' }}
jobs:
deploy:
name: Deploy wiki
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # full depth
- name: Deploy
run: |
git push https://${{ secrets.ACCESS_TOKEN }}@github.com/qbittorrent/qBittorrent.wiki.git --force