diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..8c2407d --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,27 @@ +name: Build wiki +on: + push: + branches: + master +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Install SSH private key + if: "env.TOKEN != ''" + env: + TOKEN: ${{ secrets.TOKEN }} + uses: yt-dlp/ssh-agent@v0.5.3 + with: + ssh-private-key: ${{ env.TOKEN }} + - name: Push to wiki + if: "env.TOKEN != ''" + env: + TOKEN: ${{ secrets.TOKEN }} + run: | + git remote add upstream git@github.com:yt-dlp/yt-dlp.wiki + git fetch upstream + git push --force upstream master diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..71ef988 --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +secrets/ + + +# Text Editor / IDE +.idea +*.iml +.vscode +*.sublime-* +*.code-workspace