Create build workflow

pukkandan 2022-09-02 22:23:32 +05:30
parent ae07d49a71
commit 469f1b4d4f
2 changed files with 36 additions and 0 deletions

27
.github/workflows/build.yml vendored Normal file

@ -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

9
.gitignore vendored Normal file

@ -0,0 +1,9 @@
secrets/
# Text Editor / IDE
.idea
*.iml
.vscode
*.sublime-*
*.code-workspace