Mirai-bot/.gitea/workflows/build-test.yaml
Grand-cocoa 791fee74d4
Some checks failed
Mirai-build / Explore-Gitea-Actions (push) Failing after 10s
工作流优化:简化仓库克隆路径配置
在Gitea Actions工作流中,已更新仓库克隆目录的路径设置,以简化为当前目录下的相对路径。这样做旨在避免潜在的权限问题,并使工作流的配置更加清晰。
2024-09-18 17:57:25 +08:00

19 lines
516 B
YAML

name: Mirai-build
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [ push ]
env:
BARE_REPO_DIR: https://git.alina-dace.info/Dace/Mirai-bot.git
CLONED_REPO_DIR: ./
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-latest
steps:
- run: |
rm -rf ./*
git clone $BARE_REPO_DIR $CLONED_REPO_DIR
- run: pwd
- run: ls -sl
- run: chmod +x ./mvnw
- run: sh ./mvnw -DskipTests=true clean package -P prod
- run: docker build -t mirai-bot:latest