diff --git a/.github/workflows/mkbsd.yml b/.github/workflows/mkbsd.yml new file mode 100644 index 0000000..189fcf6 --- /dev/null +++ b/.github/workflows/mkbsd.yml @@ -0,0 +1,25 @@ +name: Download and Upload MKBSD "Panels" Wallpaper +on: + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Run Python Script & Create zip file + run: | + sudo apt update + sudo apt install python3 + pip install aiohttp + python3 mkbsd.py + zip -r downloads.zip downloads + + - name: Upload Downloads Zip File to Release + uses: softprops/action-gh-release@master + with: + files: | + /home/runner/work/mkbsd/mkbsd/downloads.zip + name: MKBHD's "Panels" Wallpapers Upload + tag_name: ${{ github.run_id }} diff --git a/README.md b/README.md index 2d34182..7945474 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,13 @@ MKBSD comes in two variants! Node.js and Python. 4. Wait a little. 5. All wallpapers are now in a newly created `downloads` subfolder. +### Running in Github Actions +1. Fork the repo +2. Go to actions +3. Press on `All workflows` then choose `Download and Upload MKBSD "Panels" Wallpaper` +4. Press on `Run workflow` +Wait until the process end then check releases and you will find `downloads.zip` file + ## FAQ ### Q: What's the story behind this?