Skip to content

Commit

Permalink
Create a yml file to use WebGetter Tool From Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mrx7014 authored Mar 18, 2024
2 parents b4378fd + 3466184 commit 0ea8786
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/webgetter_basic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Basic Website Source Code

on:
workflow_dispatch:
inputs:
WEBSITE_LINK_BASIC:
description: 'Get basic Website Source HTML,CSS,JavaScript'
required: true
jobs:
build:
name: WebGetter
runs-on: ubuntu-20.04
if: github.event.repository.owner.id == github.event.sender.id
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
steps:
- name: Check Out
uses: actions/checkout@v4

- name: Prepare the environment
run: |
pwd
sudo apt update
sudo apt -y install wget git bash zip
- name: Get Basic Website Source
run: |
wget -p -k ${{ github.event.inputs.WEBSITE_LINK_BASIC }}
ls
zip -r website.zip *
- name: Upload Basic Souree to Release
uses: softprops/action-gh-release@master
with:
files: |
/home/runner/work/WebGetter/WebGetter/*.zip
name: Basic Website Source Code
tag_name: ${{ github.run_id }}
body: |
Website Link: ${{ github.event.inputs.WEBSITE_LINK_BASIC }}
42 changes: 42 additions & 0 deletions .github/workflows/webgetter_full.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Full Website Source Code

on:
workflow_dispatch:
inputs:
WEBSITE_LINK_FULL:
description: 'Get All Website Source Include All Website Files (HTML,CSS,JS,Audios,Videos,etc...)'
required: true
jobs:
build:
name: WebGetter
runs-on: ubuntu-20.04
if: github.event.repository.owner.id == github.event.sender.id
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
steps:
- name: Check Out
uses: actions/checkout@v4

- name: Prepare the environment
run: |
sudo apt update
sudo apt -y install wget git bash zip
- name: Get Basic Website Source
run: |
wget -p -k ${{ github.event.inputs.WEBSITE_LINK_FULL }}
ls
zip -r website.zip *
- name: Upload Basic Souree to Release
uses: softprops/action-gh-release@master
with:
files: |
/home/runner/work/WebGetter/WebGetter/*.zip
name: Full Website Source Code
tag_name: ${{ github.run_id }}
body: |
Website Link: ${{ github.event.inputs.WEBSITE_LINK_FULL }}

0 comments on commit 0ea8786

Please sign in to comment.