From 766d922617b3269d8ec3cad9cc589012e5768d0b Mon Sep 17 00:00:00 2001 From: TJH Date: Tue, 9 Dec 2025 14:11:16 +0800 Subject: [PATCH] 1 --- .gitea/workflows/deploy.yaml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .gitea/workflows/deploy.yaml diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..c80bc9d --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -0,0 +1,35 @@ +name: Gitea Actions Demo +on: + push: + tags: '*' + +defaults: + run: + shell: bash + working-directory: /Users/mac/rp_games/rp_11001 + +jobs: + Explore-Gitea-Actions: + runs-on: mac-local + steps: + - name: update code + run: | + pwd + git pull + echo "💡 The ${{ github.repository }} repository has been cloned to the runner." + - name: npm i + run: | + npm i + - name: build + run: | + echo 'build' + code=0 + /Applications/CocosCreator/Creator/3.8.5/CocosCreator.app/Contents/MacOS/CocosCreator --project ./ --build "configPath=./buildConfig_web-mobile.json;" || code=$? + test $code -eq 36 + - name: image compression + run: | + compress-imgs.sh -root ./build/web-mobile/ + - name: upload + run: | + rsync -av --delete build/web-mobile/ zy@dou-dev:/data/rpgames-static/$(basename $PWD) + \ No newline at end of file