From 1c735fb395a15d65dcf7d4acec704779913636db Mon Sep 17 00:00:00 2001 From: MRX7014 | Octopus Date: Thu, 26 Sep 2024 12:26:14 +0300 Subject: [PATCH 1/3] Create mkbsd.yml --- .github/workflows/mkbsd.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/mkbsd.yml diff --git a/.github/workflows/mkbsd.yml b/.github/workflows/mkbsd.yml new file mode 100644 index 0000000..060e09f --- /dev/null +++ b/.github/workflows/mkbsd.yml @@ -0,0 +1,26 @@ +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: | + apt install sudo + 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 }} From dece2630ad1f6a05663791550f7e3d386d4e97c6 Mon Sep 17 00:00:00 2001 From: MRX7014 | Octopus Date: Thu, 26 Sep 2024 12:27:30 +0300 Subject: [PATCH 2/3] Fix sudo --- .github/workflows/mkbsd.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/mkbsd.yml b/.github/workflows/mkbsd.yml index 060e09f..189fcf6 100644 --- a/.github/workflows/mkbsd.yml +++ b/.github/workflows/mkbsd.yml @@ -10,7 +10,6 @@ jobs: - name: Run Python Script & Create zip file run: | - apt install sudo sudo apt update sudo apt install python3 pip install aiohttp From e7cfc4ed576abdd23e1d2b92460c15fe09c39764 Mon Sep 17 00:00:00 2001 From: MRX7014 | Octopus Date: Thu, 26 Sep 2024 12:42:43 +0300 Subject: [PATCH 3/3] Add a guide to how to use GitHub Actions --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) 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?