Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Autumn.home committed Jun 14, 2024
1 parent ea2341e commit 00fefb2
Show file tree
Hide file tree
Showing 7 changed files with 68 additions and 68 deletions.
136 changes: 68 additions & 68 deletions .github/workflows/main.yml
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 added tools/darwin/ksubdomain
Binary file not shown.
Binary file added tools/darwin/rad
Binary file not shown.
Binary file added tools/linux/ksubdomain
Binary file not shown.
Binary file added tools/linux/rad
Binary file not shown.
Binary file added tools/win/ksubdomain.exe
Binary file not shown.
Binary file added tools/win/rad.exe
Binary file not shown.

0 comments on commit 00fefb2

Please sign in to comment.