Mirai-bot/.gitea/workflows/build-test.yaml
Grand-cocoa 4b3deaa520
Some checks failed
Mirai-build / Explore-Gitea-Actions (push) Failing after 10s
修正构建和测试工作流中的目录变更错误
之前的工作流配置错误地从根目录运行命令,而不是从预期的子目录运行。此更改确保命令在正确的项目目录中执行,以避免任何构建或测试过程中的潜在错误。
2024-09-18 17:54:06 +08:00

20 lines
574 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: ./Dace/Mirai-bot
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-latest
steps:
- run: |
rm -rf $CLONED_REPO_DIR
git clone $BARE_REPO_DIR $CLONED_REPO_DIR
- run: cd Dace/Mirai-bot
- 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