From 26537f820ecb1a24582400dba586ca88c335da13 Mon Sep 17 00:00:00 2001 From: xiaofangqing Date: Wed, 18 Mar 2026 17:35:32 +0800 Subject: [PATCH] feat: init --- .gitea/workflows/deploy.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .gitea/workflows/deploy.yml diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..eb524c9 --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,31 @@ +# .gitea/workflows/deploy.yml +name: deploy demo + +on: + push: + branches: + - "main" # 针对 main 分支 + paths: + - ".gitea/workflows/*" # 表示推送到main分支 并且以下文件进行了修改才会执行 + - "src/**" + - "package.json" + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 # 第三方的 action + + - name: create a folder # 创建文件夹 + run: mkdir test-folder + + - name: create a file # 创建一个文件 + run: | # 这样下面就可以执行多行 + cd test-folder + touch a.txt + echo "hello world" > a.txt + cat a.txt + + - name: delete a file # 删除文件 + run: rm -rf a.txt