update firefox.sh:125.0.1,hugo.sh:v0.125.0,another_redis_desktop_mana… #708
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
name: CI | |
# Controls when the action will run. | |
on: | |
# Triggers the workflow on push or pull request events but only for the master branch | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "build" | |
build: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v2 | |
- name: generate 'index' file | |
run: | | |
cat << EOF > index | |
$(ls -lh|grep "\.sh"|awk '{print "sh -c \"$(curl -fsSL install.sadeye.cn/" $NF ")\""}') | |
EOF | |
- name: commit | |
run: | | |
[ -f index ] || touch index && git add index | |
git config user.name 'github-actions' | |
git config user.email '41898282+github-actions[bot]@users.noreply.github.com' | |
git commit -am "auto" || exit 0 | |
git push | |
- name: 把将要上传的文件COPY一份到upload目录下 | |
run : mkdir -p upload && cp *.sh upload && cp index upload | |
- uses: TencentCloud/cos-action@v1 | |
with: | |
secret_id: ${{ secrets.TENCENT_CLOUD_SECRET_ID }} | |
secret_key: ${{ secrets.TENCENT_CLOUD_SECRET_KEY }} | |
cos_bucket: ${{ secrets.COS_BUCKET }} | |
cos_region: ${{ secrets.COS_REGION }} | |
local_path: upload/ | |
remote_path: '' | |
clean: true |