-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Autumn.home
committed
Jun 14, 2024
1 parent
ea2341e
commit 00fefb2
Showing
7 changed files
with
68 additions
and
68 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 |
---|---|---|
@@ -1,68 +1,68 @@ | ||
name: Download Tools | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Mkdir Tools | ||
run: | | ||
if [ ! -d "tools/linux" ]; then | ||
mkdir -p tools/linux | ||
fi | ||
if [ ! -d "tools/darwin" ]; then | ||
mkdir -p tools/darwin | ||
fi | ||
if [ ! -d "tools/win" ]; then | ||
mkdir -p tools/win | ||
fi | ||
- name: Update Ksubdomain | ||
run: | | ||
wget https://github.com/boy-hack/ksubdomain/releases/download/v1.9.5/KSubdomain-v1.9.5-linux.tar | ||
tar xvf KSubdomain-v1.9.5-linux.tar | ||
rm -rf KSubdomain-v1.9.5-linux.tar | ||
mv ksubdomain tools/linux/ksubdomain | ||
wget https://github.com/boy-hack/ksubdomain/releases/download/v1.9.5/KSubdomain-v1.9.5-darwin.tar | ||
tar xvf KSubdomain-v1.9.5-darwin.tar | ||
rm -rf KSubdomain-v1.9.5-darwin.tar | ||
mv ksubdomain tools/darwin/ksubdomain | ||
wget https://github.com/boy-hack/ksubdomain/releases/download/v1.9.5/KSubdomain-windows.tar | ||
tar xvf KSubdomain-windows.tar | ||
rm -rf KSubdomain-windows.tar | ||
mv ksubdomain.exe tools/win/ksubdomain.exe | ||
- name: Update rad | ||
run: | | ||
wget https://github.com/chaitin/rad/releases/download/1.0/rad_linux_amd64.zip | ||
unzip rad_linux_amd64.zip | ||
rm -rf rad_linux_amd64.zip | ||
mv rad_linux_amd64 tools/linux/rad | ||
wget https://github.com/chaitin/rad/releases/download/1.0/rad_darwin_amd64.zip | ||
unzip rad_darwin_amd64.zip | ||
rm -rf rad_darwin_amd64.zip | ||
mv rad_darwin_amd64 tools/darwin/rad | ||
wget https://github.com/chaitin/rad/releases/download/1.0/rad_windows_amd64.zip | ||
unzip rad_windows_amd64.zip | ||
rm -rf rad_windows_amd64.zip | ||
mv rad_windows_amd64.exe tools/win/rad.exe | ||
- name: Commit and Push changes | ||
run: | | ||
echo $(date +'%Y%m%d') > date.txt | ||
git add . | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git commit -am "$(date +'%Y%m%d')" | ||
git push -v --progress | ||
#name: Download Tools | ||
# | ||
#on: | ||
# push: | ||
# branches: | ||
# - main | ||
# | ||
#jobs: | ||
# build: | ||
# runs-on: ubuntu-latest | ||
# | ||
# steps: | ||
# - name: Checkout code | ||
# uses: actions/checkout@v4 | ||
# | ||
# - name: Mkdir Tools | ||
# run: | | ||
# if [ ! -d "tools/linux" ]; then | ||
# mkdir -p tools/linux | ||
# fi | ||
# if [ ! -d "tools/darwin" ]; then | ||
# mkdir -p tools/darwin | ||
# fi | ||
# if [ ! -d "tools/win" ]; then | ||
# mkdir -p tools/win | ||
# fi | ||
# - name: Update Ksubdomain | ||
# run: | | ||
# wget https://github.com/boy-hack/ksubdomain/releases/download/v1.9.5/KSubdomain-v1.9.5-linux.tar | ||
# tar xvf KSubdomain-v1.9.5-linux.tar | ||
# rm -rf KSubdomain-v1.9.5-linux.tar | ||
# mv ksubdomain tools/linux/ksubdomain | ||
# | ||
# wget https://github.com/boy-hack/ksubdomain/releases/download/v1.9.5/KSubdomain-v1.9.5-darwin.tar | ||
# tar xvf KSubdomain-v1.9.5-darwin.tar | ||
# rm -rf KSubdomain-v1.9.5-darwin.tar | ||
# mv ksubdomain tools/darwin/ksubdomain | ||
# | ||
# wget https://github.com/boy-hack/ksubdomain/releases/download/v1.9.5/KSubdomain-windows.tar | ||
# tar xvf KSubdomain-windows.tar | ||
# rm -rf KSubdomain-windows.tar | ||
# mv ksubdomain.exe tools/win/ksubdomain.exe | ||
# | ||
# - name: Update rad | ||
# run: | | ||
# wget https://github.com/chaitin/rad/releases/download/1.0/rad_linux_amd64.zip | ||
# unzip rad_linux_amd64.zip | ||
# rm -rf rad_linux_amd64.zip | ||
# mv rad_linux_amd64 tools/linux/rad | ||
# | ||
# | ||
# wget https://github.com/chaitin/rad/releases/download/1.0/rad_darwin_amd64.zip | ||
# unzip rad_darwin_amd64.zip | ||
# rm -rf rad_darwin_amd64.zip | ||
# mv rad_darwin_amd64 tools/darwin/rad | ||
# | ||
# wget https://github.com/chaitin/rad/releases/download/1.0/rad_windows_amd64.zip | ||
# unzip rad_windows_amd64.zip | ||
# rm -rf rad_windows_amd64.zip | ||
# mv rad_windows_amd64.exe tools/win/rad.exe | ||
# - name: Commit and Push changes | ||
# run: | | ||
# echo $(date +'%Y%m%d') > date.txt | ||
# git add . | ||
# git config --local user.email "[email protected]" | ||
# git config --local user.name "GitHub Action" | ||
# git commit -am "$(date +'%Y%m%d')" | ||
# git push -v --progress |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.