-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a yml file to use WebGetter Tool From Actions
- Loading branch information
Showing
2 changed files
with
85 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |